public Timer(int interval, TimerDlg timerEvent) { this.Interval = interval; this.count = true; this.timerDlg = timerEvent; this.timerThread = new Thread(new ThreadStart(this.StartTimer)); }