private void Configure_Click(object sender, EventArgs e) { try { if (this.configForm == null) { this.configForm = new ConfigureForm(); this.configForm.FormClosed += Config_FormClosed; this.configForm.ShowDialog(); } } catch (Exception ex) { Program.DisplayError(ex); } }
private void Config_FormClosed(object sender, FormClosedEventArgs e) { this.configForm = null; }