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(); }
public Timer(int Count, int Interval, DelegatTimer Call) { this.TickCount = Count; this.Interval = Interval; this.call = Call; }