Beispiel #1
0
        static void DoIt()
        {
            MyEventThing thing = new MyEventThing();

            thing.Tick += new EventHandler(thing_Tick);
            Thread.Sleep(5000);
            thing.Dispose();
        }
Beispiel #2
0
 static void DoIt()
 {
     MyEventThing thing = new MyEventThing();
     thing.Tick += new EventHandler(thing_Tick);
     Thread.Sleep(5000);
     thing.Dispose();
 }