Esempio n. 1
0
 private void Gauntlet_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         bw.CancelAsync();
         getsymwork.CancelAsync();
         if (indf != null)
         {
             indf.Close();
         }
         h.Stop();
     }
     catch { }
     try
     {
         if (saveonexit.Checked && !args.isUnattended)
         {
             Properties.Settings.Default.tickfolder = args.Folder;
             Properties.Settings.Default.boxdll     = args.DllName;
             WinGauntlet.Properties.Settings.Default.Save();
         }
     }
     catch (Exception ex)
     {
         debug("Error saving gauntlet configuration: " + ex.Message + ex.StackTrace);
     }
     _log.Stop();
 }
Esempio n. 2
0
 private void Gauntlet_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         bw.CancelAsync();
         getsymwork.CancelAsync();
         if (indf != null)
         {
             indf.Close();
         }
         h.Stop();
     }
     catch { }
     if (saveonexit.Checked && !args.isUnattended)
     {
         Properties.Settings.Default.tickfolder = args.Folder;
         Properties.Settings.Default.boxdll     = args.DllName;
         WinGauntlet.Properties.Settings.Default.Save();
     }
     _log.Stop();
 }