示例#1
0
        static void Main(string[] args)
        {
            StartTimer t = new StartTimer();
            Run l = new Run();
            l.Subscribe(t);
            t.Start();

            Console.WriteLine("If the counting is below this message that means counting does not break the process...");
        }
示例#2
0
 private void Print(StartTimer st, Timer e)
 {
     Console.WriteLine("{0}",e.Time.Second);
 }
示例#3
0
 public void Subscribe(StartTimer st)
 {
     st.Tick += new StartTimer.TimerDelegate(Print);
 }