private void applicationSettingsToolStripMenuItem_Click(Object sender, EventArgs e) { using (GBGApplicationSettings applicationSettingsForm = new GBGApplicationSettings(this, applicationSettings)) { applicationSettingsForm.ShowDialog(this); if (applicationSettingsForm.OkExit) { WriteLogLine("Settings applied successfully."); } else { WriteLogLine("Action cancelled."); } } }
private void applicationSettingsToolStripMenuItem_Click(Object sender, EventArgs e) { using(GBGApplicationSettings applicationSettingsForm = new GBGApplicationSettings(this, applicationSettings)) { applicationSettingsForm.ShowDialog(this); if(applicationSettingsForm.OkExit) WriteLogLine("Settings applied successfully."); else WriteLogLine("Action cancelled."); } }