private void ManageButton_Click(object sender, EventArgs e) { VariableEditorForm vef = new VariableEditorForm(); vef.FormClosing += new FormClosingEventHandler(Variable_Closing); vef.Show(); this.Enabled = false; }
private void Variable_Closing(object sender, FormClosingEventArgs e) { this.Enabled = true; VariableEditorForm vef = (VariableEditorForm)sender; VariablesComboBox.Items.Clear(); foreach (String v in ResourceManager.Map.Variables) { VariablesComboBox.Items.Add(v); } VariablesComboBox.SelectedIndex = VariablesComboBox.Items.Count - 1; }