Его событие галочки перестало работать после исключения.
Код: Выделить всё
DispatcherTimer timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromSeconds(1);
timer.Tick += new EventHandler(timer_Tick);
timer.Start();
Код: Выделить всё
this.Dispatcher.UnhandledException += new System.Windows.Threading.DispatcherUnhandledExceptionEventHandler(Dispatcher_UnhandledException);
Код: Выделить всё
void timer_Tick(object sender, EventArgs e)
{
ServerClock = ServerClock.AddSeconds(1);
int a = 0;
int i = 1 / a;
}