/// <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> public DbMysqlTableIndexColumnsListModel(TreeViewAdv ListView, IndexColumnsListWrapper GrtList, MySQLTableColumnsListWrapper TableColumnGrtList, NodeCheckBox EnabledNodeControl, AdvNodeComboBox NameNodeControl, AdvNodeComboBox OrderNodeControl, AdvNodeComboBox StorageNodeControl, AdvNodeTextBox LengthNodeControl) : base(ListView, GrtList, false) { tableColumnGrtList = TableColumnGrtList; enabledNodeControl = EnabledNodeControl; nameNodeControl = NameNodeControl; orderNodeControl = OrderNodeControl; storageNodeControl = StorageNodeControl; lengthNodeControl = LengthNodeControl; // assign virtual value events for displaying and processing the edited value content enabledNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); enabledNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); nameNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); nameNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); nameNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); orderNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); orderNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); orderNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); storageNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); storageNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); storageNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); lengthNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); lengthNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); lengthNodeControl.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 DbMysqlTableColumnsListModel(IModelChangeListener listener, TreeViewAdv tree, MySQLTableColumnsListWrapper grtList, NodeIcon columnIconNodeControl, AdvNodeTextBox nameNodeControl, AdvNodeComboBox datatypeComboBoxNodeControl, NodeCheckBox pkNodeControl, NodeCheckBox nnNodeControl, NodeCheckBox uqNodeControl, NodeCheckBox binNodeControl, NodeCheckBox unNodeControl, NodeCheckBox zfNodeControl, NodeCheckBox aiNodeControl, NodeCheckBox gNodeControl, AdvNodeTextBox defaultNodeControl, MySQLTableEditorWrapper wrapper) : base(tree, grtList, columnIconNodeControl, true) { this.listener = listener; this.nameNodeControl = nameNodeControl; this.datatypeComboBoxNodeControl = datatypeComboBoxNodeControl; this.pkNodeControl = pkNodeControl; this.nnNodeControl = nnNodeControl; this.uqNodeControl = uqNodeControl; this.binNodeControl = binNodeControl; this.unNodeControl = unNodeControl; this.zfNodeControl = zfNodeControl; this.aiNodeControl = aiNodeControl; this.gNodeControl = gNodeControl; this.defaultNodeControl = defaultNodeControl; this.mySQLTableEditorWrapper = wrapper; // 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); datatypeComboBoxNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); datatypeComboBoxNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); datatypeComboBoxNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); pkNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); pkNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); nnNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); nnNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); uqNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); uqNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); binNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); binNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); unNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); unNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); zfNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); zfNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); aiNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); aiNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); gNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); gNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed); defaultNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); defaultNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); defaultNodeControl.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> public DbMysqlTableIndicesListModel(TreeViewAdv tree, IndexListWrapper grtList, AdvNodeTextBox nameNodeControl, AdvNodeComboBox typeNodeControl, AdvNodeComboBox indexColumnNameNodeControl, MySQLTableEditorWrapper wrapper) : base(tree, grtList, true) { this.nameNodeControl = nameNodeControl; this.typeNodeControl = typeNodeControl; this.indexColumnNameNodeControl = indexColumnNameNodeControl; tableEditorWrapper = wrapper; // 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); typeNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); typeNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded); typeNodeControl.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); }
/// <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 DbMysqlTableFkColumnListModel(TreeViewAdv tree, FKConstraintColumnsListWrapper grtList, NodeCheckBox columnEnabledFkNodeControl, AdvNodeTextBox nameNodeControl, AdvNodeComboBox targetNodeControl, MySQLTableEditorWrapper wrapper) : base(tree, grtList, false) { this.columnEnabledFkNodeControl = columnEnabledFkNodeControl; this.nameNodeControl = nameNodeControl; this.targetColumnNodeControl = targetNodeControl; this.mySQLTableEditorWrapper = wrapper; // Assign virtual value events for displaying and processing the edited value content. columnEnabledFkNodeControl.ValueNeeded += new EventHandler <NodeControlValueEventArgs>(ValueNeeded); columnEnabledFkNodeControl.ValuePushed += new EventHandler <NodeControlValueEventArgs>(ValuePushed); nameNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); nameNodeControl.ValueNeeded += new EventHandler <NodeControlValueEventArgs>(ValueNeeded); nameNodeControl.ValuePushed += new EventHandler <NodeControlValueEventArgs>(ValuePushed); targetColumnNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize); targetColumnNodeControl.ValueNeeded += new EventHandler <NodeControlValueEventArgs>(ValueNeeded); targetColumnNodeControl.ValuePushed += new EventHandler <NodeControlValueEventArgs>(ValuePushed); }