private void menuItemScoping_Click(object sender, EventArgs e) { if (this.DryerCtrl.Dryer.ScopingModel != null) { this.comboBoxCalculationType.Enabled = false; if (this.scopingEditor == null) { this.scopingEditor = new DryerScopingEditor(this.DryerCtrl); this.scopingEditor.Owner = this; this.scopingEditor.Closed += new EventHandler(scopingEditor_Closed); this.scopingEditor.Show(); } else { if (this.scopingEditor.WindowState.Equals(FormWindowState.Minimized)) { this.scopingEditor.WindowState = FormWindowState.Normal; } this.scopingEditor.Activate(); } } }
private void scopingEditor_Closed(object sender, EventArgs e) { this.scopingEditor = null; this.comboBoxCalculationType.Enabled = true; }