Example #1
0
        static void Main()
        {
            TimeHandler timeHandler = new TimeHandler();
            Counter     l           = new Counter();

            l.Subscribe(timeHandler);
            timeHandler.Start();
        }
Example #2
0
 private void HeardIt(TimeHandler m, Time e)
 {
     System.Console.WriteLine("HEARD IT AT {0}", e.Timer);
 }
Example #3
0
 public void Subscribe(TimeHandler m)
 {
     m.Tick += new TimeHandler.TickHandler(HeardIt);
 }