private void buttonAddField_Click(object sender, EventArgs e) { FieldForm fieldForm = new FieldForm(); fieldForm.CallBack = CallBack_Update_Field; fieldForm.CallBack_IsExistFieldName = CallBack_IsExistFieldName; fieldForm.NewNameInTable = Configuration.GetNewUnigueColumnName(Program.Kernel, ConfDirectoryTablePart.Table, ConfDirectoryTablePart.Fields); fieldForm.Show(); }
private void addPropertyField_Click(object sender, EventArgs e) { FieldForm fieldForm = new FieldForm(); fieldForm.Tag = "Property"; fieldForm.CallBack = CallBack_Update_Field; fieldForm.CallBack_IsExistFieldName = CallBack_IsExistFieldName; fieldForm.NewNameInTable = Configuration.GetNewUnigueColumnName(Program.Kernel, ConfRegistersInformation.Table, GetAllField()); fieldForm.Show(); }
private void listBoxFields_MouseDoubleClick(object sender, MouseEventArgs e) { if (listBoxFields.SelectedItem != null) { FieldForm fieldForm = new FieldForm(); fieldForm.ConfigurationObjectField = ConfDirectoryTablePart.Fields[listBoxFields.SelectedItem.ToString()]; fieldForm.CallBack = CallBack_Update_Field; fieldForm.CallBack_IsExistFieldName = CallBack_IsExistFieldName; fieldForm.Show(); } }
private void treeViewFields_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Node.Tag != null) { Tuple <ConfigurationObjectField, string> tuple = (Tuple <ConfigurationObjectField, string>)e.Node.Tag; ConfigurationObjectField field = tuple.Item1; string flagTag = tuple.Item2; FieldForm fieldForm = new FieldForm(); fieldForm.Tag = flagTag; fieldForm.ConfigurationObjectField = field; fieldForm.CallBack = CallBack_Update_Field; fieldForm.CallBack_IsExistFieldName = CallBack_IsExistFieldName; fieldForm.NewNameInTable = Configuration.GetNewUnigueColumnName(Program.Kernel, ConfRegistersInformation.Table, GetAllField()); fieldForm.Show(); } }