using System;
namespace EventTest
{
class Program
{
static void Main(string[] args)
{
Ball b = new Ball();
b.FlyEvent
+= BallFlyHandler;
b.FlyEvent
+= delegate ()
{
Console.WriteLine("Catch Ball Fly Event delegate");
};
b.FlyEvent
+= () =>
{
Console.WriteLine("Catch Ball Fly Event 匿名函式");
};
b.Throw();
Console.ReadLine();
}
private static void BallFlyHandler()
{
Console.WriteLine("Catch Ball Fly Event
BallFlyHandler");
}
}
class Ball
{
public event Action FlyEvent = null;
public void Throw()
{
if (FlyEvent != null)
FlyEvent();
}
}
}
https://www.youtube.com/watch?v=LUKQjU56xy4
回覆刪除你好我想請問如果可以的話能給我看看這影片的CODE嗎?
目前正在研究這方面的東西
may08026@gmail.com
這影片的Code 已經消失很久了@@
刪除之前我是看
http://goods.ruten.com.tw/item/show?21528079332765
這本書學的 或許你可以買來看看
http://tim12332013.blogspot.tw/search/label/OPENCV-%5B%E8%85%90%E8%9D%95%5D%5B%E6%93%B4%E5%BC%B5%5D%7BcvErode%28%29%20and%20cvDilate%28%29%20%7D
http://tim12332013.blogspot.tw/2013/10/opencvcvabsdiffimg1img2img3.html
這兩篇你可以看看 應該有幫助