コード例 #1
0
        private void ManageButton_Click(object sender, EventArgs e)
        {
            VariableEditorForm vef = new VariableEditorForm();

            vef.FormClosing += new FormClosingEventHandler(Variable_Closing);
            vef.Show();

            this.Enabled = false;
        }
コード例 #2
0
        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;
        }