Exemple #1
0
 //_________________________________________________________________________
 private void FTestDrivers_FormClosing(object sender, FormClosingEventArgs e)
 {
     TScanParam.Enabled = false;
     Devices.Save();
     Params.Save();
     DRV.Close();
 }
Exemple #2
0
 //_________________________________________________________________________
 private void FTestDrivers_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (MessageBox.Show("Кончить тестирование драйвера?", "Завершение работы программы", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         if (DRV != null)
         {
             DRV.Close();
         }
         TScanParam.Dispose();
         TScanParam.Stop();
         TrStatExchange.Dispose();
         TrStatExchange.Stop();
         TrWorkTime.Stop();
         Devices.Save();
         Params.Save();
         Properties.Settings.Default.Save();
     }
     else
     {
         e.Cancel = true;
     }
 }