/// <summary> /// Constructor that initializes the model with the given objects /// </summary> /// <param name="TreeView">The TreeViewAdv control this model belongs to</param> /// <param name="GrtTree">The GRT tree this model belongs to</param> /// <param name="NodeStateIcon">The NodeStateIcon NodeControl that displays the icon</param> public DbMysqlTableFkListModel(TreeViewAdv tree, FKConstraintListWrapper grtList, AdvNodeTextBox nameNodeControl, AdvNodeComboBox targetNodeControl, MySQLTableEditorWrapper wrapper, NodeCheckBox columnEnabledFkNodeControl) : base(tree, grtList, true) { this.nameNodeControl = nameNodeControl; this.targetNodeControl = targetNodeControl; this.mySQLTableEditorWrapper = wrapper; this.columnEnabledFkNodeControl = columnEnabledFkNodeControl; // Assign virtual value events for displaying and processing the edited value content. nameNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); nameNodeControl.ValueNeeded += new EventHandler <NodeControlValueEventArgs>(ValueNeeded); nameNodeControl.ValuePushed += new EventHandler <NodeControlValueEventArgs>(ValuePushed); targetNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); targetNodeControl.ValueNeeded += new EventHandler <NodeControlValueEventArgs>(ValueNeeded); targetNodeControl.ValuePushed += new EventHandler <NodeControlValueEventArgs>(ValuePushed); }
/// <summary> /// Constructor that initializes the model with the given objects /// </summary> /// <param name="TreeView">The TreeViewAdv control this model belongs to</param> /// <param name="GrtTree">The GRT tree this model belongs to</param> /// <param name="NodeStateIcon">The NodeStateIcon NodeControl that displays the icon</param> public DbMysqlTableFkListModel(TreeViewAdv tree, FKConstraintListWrapper grtList, AdvNodeTextBox nameNodeControl, AdvNodeComboBox targetNodeControl, MySQLTableEditorWrapper wrapper, NodeCheckBox columnEnabledFkNodeControl) : base(tree, grtList, true) { this.nameNodeControl = nameNodeControl; this.targetNodeControl = targetNodeControl; this.mySQLTableEditorWrapper = wrapper; this.columnEnabledFkNodeControl = columnEnabledFkNodeControl; // Assign virtual value events for displaying and processing the edited value content. nameNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); nameNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); nameNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); targetNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); targetNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); targetNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); }