/// <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> 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); }