Пример #1
0
 private void addAllowedButton_Click(object sender, System.EventArgs e)
 {
     if (allowedValuesCheckBox.Visible == true)
     {
         AddAllowedValueForm form = new AddAllowedValueForm();
         DialogResult        r    = form.ShowDialog(this);
         if (r == DialogResult.OK && form.AllowedValue.Length > 0)
         {
             allowedValuesListBox.Items.Add(form.AllowedValue);
         }
     }
 }
 private void addAllowedButton_Click(object sender, System.EventArgs e)
 {
     if(allowedValuesCheckBox.Visible==true)
     {
         AddAllowedValueForm form = new AddAllowedValueForm();
         DialogResult r = form.ShowDialog(this);
         if (r == DialogResult.OK && form.AllowedValue.Length > 0)
         {
             allowedValuesListBox.Items.Add(form.AllowedValue);
         }
     }
 }