예제 #1
0
 private void StopConnect()
 {
     ACSUpdater.StopUpdate();
     QPLCUpdater.StopUpdate();
     LSUpdater.StopUpdate();
     ToggleListen(toggleType.CLOSE);
     connected = false;
     toggleConnectButton.Text = "Connect!";
     UpdateUIThread.Abort();
     EnableMenu();
 }
 private void IOInterface_FormClosing(object sender, FormClosingEventArgs e)
 {
     suppressShowingError = true;
     updateError          = true;
     ACSUpdater.ForceStopUpdate();
     try
     {
         UpdateUIThread.Abort();
     }
     catch
     {
     }
     try
     {
         UpdateErrorThread.Abort();
     }
     catch
     {
     }
     SaveDefaultFile();
 }