Exemplo n.º 1
0
 private void listBoxFields_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (listBoxFields.SelectedItem != null)
     {
         EnumFieldForm enumFieldForm = new EnumFieldForm();
         enumFieldForm.Field = ConfEnums.Fields[listBoxFields.SelectedItem.ToString()];
         enumFieldForm.CallBack_IsExistField = CallBack_IsExistField;
         enumFieldForm.CallBack = CallBack_Update_Field;
         enumFieldForm.Show();
     }
 }
Exemplo n.º 2
0
        private void buttonAddField_Click(object sender, EventArgs e)
        {
            ConfEnums.SerialNumber += 1;

            EnumFieldForm enumFieldForm = new EnumFieldForm();

            enumFieldForm.SerialNumber          = ConfEnums.SerialNumber;
            enumFieldForm.CallBack_IsExistField = CallBack_IsExistField;
            enumFieldForm.CallBack = CallBack_Update_Field;
            enumFieldForm.Show();
        }