private void AddVariable(object sender, EventArgs e)
 {
     using (var form = new IdentifierForm <VariableObj>("Variable", variables.Keys))
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             var obj = new VariableObj();
             variables.Add(form.Identifier, obj);
             cmboVariables.Items.Add(form.Identifier);
             cmboVariables.SelectedIndex = cmboVariables.Items.Count - 1;
             VariableChanged(null, EventArgs.Empty);
         }
     }
 }
 private void AddInput(object sender, EventArgs e)
 {
     using (var form = new IdentifierForm <InputObj>("Input", inputs.Keys))
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             var obj = new InputObj
             {
                 UserDefined = true,
                 Type        = "any"
             };
             inputs.Add(form.Identifier, obj);
             cmboInputs.Items.Add(form.Identifier);
             cmboInputs.SelectedIndex = cmboInputs.FindStringExact(form.Identifier);
             InputChanged(null, EventArgs.Empty);
         }
     }
 }