Esempio n. 1
0
 void Timer1Tick(object sender, EventArgs e)
 {
     if (ClassServer.CheckBaseUpdate() == false)
     {
         timer1.Stop();
         if (MessageBox.Show("Связь с сервером потерята, закрыть приложение (ОК) или продолжить?", "Сообщение", MessageBoxButtons.OKCancel) == DialogResult.OK)
         {
             Application.Exit();
         }
         else
         {
             timer1.Start();
         }
     }
 }