Example #1
0
        static void Main(string[] args)
        {
            DelegatTimer timer = new DelegatTimer(PrintMasage);

            Timer newTimer = new Timer(10, 800, timer);

            Thread thread = new Thread(new ThreadStart(newTimer.Run));
            thread.Start();
        }
Example #2
0
        static void Main(string[] args)
        {
            DelegatTimer timer = new DelegatTimer(PrintMasage);

            Timer newTimer = new Timer(10, 800, timer);

            Thread thread = new Thread(new ThreadStart(newTimer.Run));

            thread.Start();
        }
Example #3
0
 public Timer(int Count, int Interval, DelegatTimer Call)
 {
     this.TickCount = Count;
     this.Interval = Interval;
     this.call = Call;
 }
Example #4
0
 public Timer(int Count, int Interval, DelegatTimer Call)
 {
     this.TickCount = Count;
     this.Interval  = Interval;
     this.call      = Call;
 }