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(); }
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(); }