示例#1
0
 private void EditEnumerationValue()
 {
     using (EditEnumerationValue dialog = new EditEnumerationValue((EnumerationValueMapping)enumerationValuesListBox.SelectedItem))
     {
         dialog.ShowDialog(this);
     }
 }
示例#2
0
        private void addEnumerationValueButton_Click(object sender, EventArgs e)
        {
            using (EditEnumerationValue dialog = new EditEnumerationValue())
            {
                if (dialog.ShowDialog(this) == DialogResult.OK)
                {
                    AddEnumerationValue(dialog.EnumerationValueMapping);
                }

                PropertyChanged(sender, e);
            }
        }