/// <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);
        }
Beispiel #2
0
        public void Perf_test()
        {
            var treeNodeAdv = new TreeNodeAdv(new ThreeStateNode("node"));
            var newCheckBox = new NodeCheckBox();
            var oldCheckBox = new Aga.Controls.Tree.NodeControls.NodeCheckBox
            {
                DataPropertyName = "CheckState"
            };

            const int reps = 1000000;

            var oldTime = Time(() =>
            {
                for (int i = 0; i < reps; i++)
                {
                    oldCheckBox.GetValue(treeNodeAdv);
                }
            });

            Console.WriteLine("Base node check box: {0}", oldTime);

            var newTime = Time(() =>
            {
                for (int i = 0; i < reps; i++)
                {
                    newCheckBox.GetValue(treeNodeAdv);
                }
            });

            Console.WriteLine("New node check box: {0}", newTime);

            Assert.GreaterThan(oldTime, newTime);
        }
Beispiel #3
0
 public NodeCheckBox AddCheckBoxControl(string dataPropertyName)
 {
     checkControl              = new NodeCheckBox();
     checkControl.LeftMargin   = 0;
     checkControl.ParentColumn = null;
     checkControl.EditEnabled  = true;
     AddNodeControl(dataPropertyName, checkControl);
     return(checkControl);
 }
Beispiel #4
0
        protected void SetupTree(InventoryTree tree, ITreeModel model, bool expandRoot)
        {
            tree.NodeControls.Clear();
            NodeCheckBox checkBox = tree.AddCheckBoxControl("Checked");

            checkBox.IsVisibleValueNeeded     += new EventHandler <NodeControlValueEventArgs>(IsCheckBoxVisible);
            checkBox.IsEditEnabledValueNeeded += new EventHandler <NodeControlValueEventArgs>(IsCheckBoxEnabled);
            checkBox.CheckStateChanged        += new EventHandler <TreePathEventArgs>(CheckBoxStateChanged);
            tree.AddIconControl("Icon");
            tree.AddTextBoxControl("Name");
            tree.SetModel(model, expandRoot);
        }
Beispiel #5
0
        public TestTreeView()
        {
            nodeCheckBox = new NodeCheckBox();
            NodeControls.Add(nodeCheckBox);

            NodeControls.Add(new TestKindIcon());

            NodeControls.Add(new TestStatusNodeIcon());

            nodeTextBox = new TestNodeTextBox();
            NodeControls.Add(nodeTextBox);
        }
Beispiel #6
0
        /// <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);
        }
Beispiel #7
0
        /// <summary>
        /// Инициализация узла чекбоксов
        /// </summary>
        /// <param name="customizingView">Дерево</param>
        /// <param name="column">Колонка</param>
        /// <param name="customizingCheckBox">Чекбокс</param>
        /// <param name="checkStateChanged">Делегат для обработки изменения
        /// состояния чекбокса</param>
        private static void SetUpNodeCheckBox(TreeViewAdv customizingView,
                                              TreeColumn column, NodeCheckBox customizingCheckBox,
                                              CheckStateChangedEventHandler checkStateChanged)
        {
            customizingCheckBox.DataPropertyName   = "CheckState";
            customizingCheckBox.VerticalAlign      = VerticalAlignment.Center;
            customizingCheckBox.ParentColumn       = column;
            customizingCheckBox.EditEnabled        = true;
            customizingCheckBox.CheckStateChanged +=
                new EventHandler <TreePathEventArgs>(checkStateChanged);

            customizingView.NodeControls.Add(customizingCheckBox);
        }
Beispiel #8
0
            public _Control(PopupList p)
            {
                _p = p;

                this.BorderStyle = BorderStyle.FixedSingle;
                this.SetStyle(ControlStyles.Selectable                 //prevent focusing control and activating window on click
                              , false);

                this.ShowNodeToolTips = true;
                this.FullRowSelect    = true;
                this.ShowPlusMinus    = false; this.ShowLines = false;
                this.GridLineStyle    = GridLineStyle.Horizontal;
                //this.AutoRowHeight=false;

                _ccCheck                      = new NodeCheckBox();
                _ccCheck.LeftMargin           = 4;
                _ccCheck.IsVisibleValueNeeded = o => o.Tag is IPopupListItem e && e.CheckType != default;
                _ccCheck.ValueNeeded          = o => o.Tag is IPopupListItem e && e.Checked ? CheckState.Checked : default;
                NodeControls.Add(_ccCheck);

                _ccIcon                      = new NodeIcon();
                _ccIcon.LeftMargin           = 4;
                _ccIcon.ScaleMode            = ImageScaleMode.ScaleUp;
                _ccIcon.DpiStretch           = true;
                _ccIcon.IsVisibleValueNeeded = o => o.Tag is IPopupListItem e && e.Icon != null;
                _ccIcon.ValueNeeded          = o => o.Tag is IPopupListItem e ? e.Icon : null;
                NodeControls.Add(_ccIcon);

                _ccText = new NodeTextBox();
                //_ccText.LeftMargin = 0; //default 1
                _ccText.Trimming          = StringTrimming.EllipsisCharacter;
                _ccText.ValueNeeded       = node => node.Tag;
                _ccText.FontNeeded        = node => (node.Tag is IPopupListItem x && x.BoldFont) ? _p._w.FontBold : _p._w.Font;
                _ccText.DrawText         += _ccText_DrawText;
                _ccText.NeedDrawTextEvent = node => node.Tag is IPopupListItem x && (x.TextColor != default || (x.Disabled && x.BackColor == default));
                NodeControls.Add(_ccText);

#if false //test column header and multiple columns
                UseColumns = true;
                var _columnName = new TreeColumn("Name", 50);
                this.Columns.Add(_columnName);
                _ccText.ParentColumn = _columnName;

                //var _cc2 = new NodeTextBox();
                //_cc2.ValueNeeded = node => "2";
                //NodeControls.Add(_cc2);
                //var _col2 = new TreeColumn("Two", 50);
                //this.Columns.Add(_col2);
                //_cc2.ParentColumn = _col2;
#endif
            }
        public static void ColumnsToTreeViewAdv(TreeViewAdv treeViewAdv, List <ColumnData> columns)
        {
            treeViewAdv.Columns.Clear();
            treeViewAdv.NodeControls.Clear();
            foreach (ColumnData columnData in columns)
            {
                NamedTreeColumn treeColumn = new NamedTreeColumn();
                treeColumn.Name        = columnData.Name;
                treeColumn.Header      = columnData.Header;
                treeColumn.SortOrder   = columnData.SortOrder;
                treeColumn.TooltipText = columnData.TooltipText;
                treeColumn.Width       = columnData.Width;
                treeViewAdv.Columns.Add(treeColumn);

                foreach (var columnItem in columnData.Items)
                {
                    switch (columnItem.Type)
                    {
                    case ColumnItemType.NodeCheckBox:
                        NodeCheckBox nodeCheckBox = new NodeCheckBox();
                        nodeCheckBox.DataPropertyName = columnItem.DataPropertyName;
                        nodeCheckBox.EditEnabled      = columnItem.EditEnabled;
                        nodeCheckBox.LeftMargin       = columnItem.LeftMargin;
                        nodeCheckBox.HorizontalAlign  = columnItem.HorizontalAlign;
                        nodeCheckBox.ParentColumn     = treeColumn;
                        treeViewAdv.NodeControls.Add(nodeCheckBox);
                        break;

                    case ColumnItemType.NodeIcon:
                        NodeIcon nodeIcon = new NodeIcon();
                        nodeIcon.DataPropertyName = columnItem.DataPropertyName;
                        nodeIcon.LeftMargin       = columnItem.LeftMargin;
                        nodeIcon.HorizontalAlign  = columnItem.HorizontalAlign;
                        nodeIcon.ScaleMode        = columnItem.ImageScaleMode;
                        nodeIcon.ParentColumn     = treeColumn;
                        treeViewAdv.NodeControls.Add(nodeIcon);
                        break;

                    case ColumnItemType.NodeTextBox:
                        NodeTextBox nodeTextBox = new NodeTextBox();
                        nodeTextBox.DataPropertyName         = columnItem.DataPropertyName;
                        nodeTextBox.IncrementalSearchEnabled = columnItem.IncrementalSearchEnabled;
                        nodeTextBox.LeftMargin   = columnItem.LeftMargin;
                        nodeTextBox.ParentColumn = treeColumn;
                        nodeTextBox.UseCompatibleTextRendering = true;
                        treeViewAdv.NodeControls.Add(nodeTextBox);
                        break;
                    }
                }
            }
        }
        /// <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);
        }
        public SolutionProjectsPage(WizardParams Params)
            : base(Params)
        {
            InitializeComponent();

            if (PK.Wrapper.GetProjectTemplates().Count == 0)
            {
                PK.Wrapper.LoadTemplateProjects();
            }

            _treeView.NodeControls.Clear();
            NodeCheckBox checkBox = _treeView.AddCheckBoxControl("Checked");

            checkBox.IsVisibleValueNeeded     += new EventHandler <NodeControlValueEventArgs>(checkBox_IsVisibleValueNeeded);
            checkBox.IsEditEnabledValueNeeded += new EventHandler <NodeControlValueEventArgs>(checkBox_IsVisibleValueNeeded);
            _treeView.AddIconControl("Icon");
            _treeView.AddTextBoxControl("Name");

            List <ComponentWrapper> nativeProjects = new List <ComponentWrapper>();
            List <ComponentWrapper> clrProjects    = new List <ComponentWrapper>();

            foreach (ProjectWrapper project in PK.Wrapper.GetProjectTemplates())
            {
                ComponentWrapper component = ComponentWrapper.GetComponentWrapper(project);
                if (project.IsClrProject)
                {
                    clrProjects.Add(component);
                }
                else
                {
                    nativeProjects.Add(component);
                }
            }

            Collection <RootNode> roots = new Collection <RootNode>();

            roots.Add(new RootNode(null, "Native Projects", nativeProjects.ToArray()));
            roots.Add(new RootNode(null, "CLR Projects", clrProjects.ToArray()));
            _treeView.SetModel(InventoryBrowserModel.GetModel(roots), true);
        }
Beispiel #12
0
        /// <summary>
        /// Инициализация дерева TreeViewAdv из Aga библиотеки.
        /// </summary>
        /// <param name="customizingView">Дерево для настройки</param>
        /// <param name="columnName">Имя добавляемой колонки</param>
        /// <param name="checkStateChangedDelegate">Делегат для обработки
        /// изменения состояния чекбокса</param>
        /// <param name="customizingCheckBox">Чекбокс для настройки</param>
        /// <param name="drawNodeDelegate">Делегат для отрисовки текстовых
        /// элементов</param>
        public static void SetUpAdvTreeView(TreeViewAdv customizingView,
                                            string columnName, DrawEventHandler drawNodeDelegate,
                                            NodeCheckBox customizingCheckBox,
                                            CheckStateChangedEventHandler checkStateChangedDelegate = null)
        {
            customizingView.FullRowSelect            = true;
            customizingView.FullRowSelectActiveColor = Color
                                                       .FromArgb(192, 192, 255);
            customizingView.FullRowSelectInactiveColor = Color
                                                         .FromArgb(192, 255, 192);
            customizingView.GridLineStyle = GridLineStyle.Horizontal;
            customizingView.UseColumns    = true;
            customizingView.ShowLines     = true;
            customizingView.ShowPlusMinus = true;
            customizingView.RowHeight     = 20;

            TreeColumn column = SetUpColumn(customizingView, columnName);

            SetUpNodeCheckBox(customizingView, column, customizingCheckBox,
                              checkStateChangedDelegate);
            SetUpNodeTextBox(customizingView, column, drawNodeDelegate);
        }
        /// <summary>
        /// Initialize all windows forms components.
        /// </summary>
        private void InitializeDesigner()
        {
            NodeCheckBox entryCheckBox = new NodeCheckBox();

            entryCheckBox.DataPropertyName          = "IsChecked";
            entryCheckBox.EditEnabled               = true;
            entryCheckBox.LeftMargin                = 0;
            entryCheckBox.ParentColumn              = null;
            entryCheckBox.IsEditEnabledValueNeeded += this.CheckIndex;

            NodeIcon entryIcon = new NodeIcon();

            entryIcon.DataPropertyName = "EntryIcon";
            entryIcon.LeftMargin       = 1;
            entryIcon.ParentColumn     = null;
            entryIcon.ScaleMode        = ImageScaleMode.Clip;

            NodeTextBox entryDescription = new NodeTextBox();

            entryDescription.DataPropertyName         = "EntryDescription";
            entryDescription.IncrementalSearchEnabled = true;
            entryDescription.LeftMargin   = 3;
            entryDescription.ParentColumn = null;
            entryDescription.DrawText    += this.EntryDescriptionDrawText;

            NodeTextBox entryValuePreview = new NodeTextBox();

            entryValuePreview.DataPropertyName         = "EntryValuePreview";
            entryValuePreview.IncrementalSearchEnabled = true;
            entryValuePreview.LeftMargin   = 3;
            entryValuePreview.ParentColumn = null;
            entryValuePreview.DrawText    += this.EntryValuePreviewDrawText;

            this.projectItemToolTip       = new ToolTip();
            this.toggleSelectionMenuItem  = new ToolStripMenuItem("Toggle");
            this.compileSelectionMenuItem = new ToolStripMenuItem("Compile");
            this.addNewItemMenuItem       = new ToolStripMenuItem("Add New...");
            this.deleteSelectionMenuItem  = new ToolStripMenuItem("Delete");
            this.copySelectionMenuItem    = new ToolStripMenuItem("Copy");
            this.cutSelectionMenuItem     = new ToolStripMenuItem("Cut");
            this.pasteSelectionMenuItem   = new ToolStripMenuItem("Paste");
            this.addNewFolderMenuItem     = new ToolStripMenuItem("Add Folder", ImageUtils.BitmapImageToBitmap(Images.Open));
            this.addNewAddressMenuItem    = new ToolStripMenuItem("Add Address", ImageUtils.BitmapImageToBitmap(Images.CollectValues));
            this.addNewScriptMenuItem     = new ToolStripMenuItem("Add Script", ImageUtils.BitmapImageToBitmap(Images.CollectValues));
            this.contextMenuStrip         = new ContextMenuStrip();

            KeysConverter keysConverter = new KeysConverter();

            this.toggleSelectionMenuItem.ShortcutKeyDisplayString = keysConverter.ConvertToString(Keys.Space);
            this.copySelectionMenuItem.ShortcutKeyDisplayString   = keysConverter.ConvertToString(Keys.Control | Keys.C);
            this.cutSelectionMenuItem.ShortcutKeyDisplayString    = keysConverter.ConvertToString(Keys.Control | Keys.X);
            this.pasteSelectionMenuItem.ShortcutKeyDisplayString  = keysConverter.ConvertToString(Keys.Control | Keys.V);
            this.deleteSelectionMenuItem.ShortcutKeyDisplayString = keysConverter.ConvertToString(Keys.Delete);

            this.toggleSelectionMenuItem.Click  += this.ToggleSelectionMenuItemClick;
            this.compileSelectionMenuItem.Click += this.CompileSelectionMenuItemClick;
            this.deleteSelectionMenuItem.Click  += this.DeleteSelectionMenuItemClick;
            this.copySelectionMenuItem.Click    += this.CopySelectionMenuItemClick;
            this.cutSelectionMenuItem.Click     += this.CutSelectionMenuItemClick;
            this.pasteSelectionMenuItem.Click   += this.PasteSelectionMenuItemClick;
            this.addNewFolderMenuItem.Click     += this.AddNewFolderMenuItemClick;
            this.addNewAddressMenuItem.Click    += this.AddNewAddressMenuItemClick;
            this.addNewScriptMenuItem.Click     += this.AddNewScriptMenuItemClick;
            this.contextMenuStrip.Opening       += this.ContextMenuStripOpening;

            this.addNewItemMenuItem.DropDownItems.Add(this.addNewFolderMenuItem);
            this.addNewItemMenuItem.DropDownItems.Add(this.addNewAddressMenuItem);
            this.addNewItemMenuItem.DropDownItems.Add(this.addNewScriptMenuItem);

            this.contextMenuStrip.Items.Add(this.toggleSelectionMenuItem);
            this.contextMenuStrip.Items.Add(this.compileSelectionMenuItem);
            this.contextMenuStrip.Items.Add(this.addNewItemMenuItem);
            this.contextMenuStrip.Items.Add(this.deleteSelectionMenuItem);
            this.contextMenuStrip.Items.Add(new ToolStripSeparator());
            this.contextMenuStrip.Items.Add(this.copySelectionMenuItem);
            this.contextMenuStrip.Items.Add(this.cutSelectionMenuItem);
            this.contextMenuStrip.Items.Add(this.pasteSelectionMenuItem);

            this.projectExplorerTreeView = new TreeViewAdv();
            this.projectExplorerTreeView.NodeControls.Add(entryCheckBox);
            this.projectExplorerTreeView.NodeControls.Add(entryIcon);
            this.projectExplorerTreeView.NodeControls.Add(entryDescription);
            this.projectExplorerTreeView.NodeControls.Add(entryValuePreview);
            this.projectExplorerTreeView.SelectionMode    = TreeSelectionMode.Multi;
            this.projectExplorerTreeView.BorderStyle      = BorderStyle.None;
            this.projectExplorerTreeView.Model            = this.projectTree;
            this.projectExplorerTreeView.AllowDrop        = true;
            this.projectExplorerTreeView.FullRowSelect    = true;
            this.projectExplorerTreeView.ContextMenuStrip = this.contextMenuStrip;

            this.projectExplorerTreeView.ItemDrag             += this.ProjectExplorerTreeViewItemDrag;
            this.projectExplorerTreeView.NodeMouseDoubleClick += this.ProjectExplorerTreeViewNodeMouseDoubleClick;
            this.projectExplorerTreeView.SelectionChanged     += this.ProjectExplorerTreeViewSelectionChanged;
            this.projectExplorerTreeView.DragDrop             += this.ProjectExplorerTreeViewDragDrop;
            this.projectExplorerTreeView.DragEnter            += this.ProjectExplorerTreeViewDragEnter;
            this.projectExplorerTreeView.DragOver             += this.ProjectExplorerTreeViewDragOver;
            this.projectExplorerTreeView.MouseMove            += this.ProjectExplorerTreeViewMouseMove;

            this.projectExplorerTreeView.BackColor         = DarkBrushes.BaseColor3;
            this.projectExplorerTreeView.ForeColor         = DarkBrushes.BaseColor2;
            this.projectExplorerTreeView.DragDropMarkColor = DarkBrushes.BaseColor11;
            this.projectExplorerTreeView.LineColor         = DarkBrushes.BaseColor11;
        }
Beispiel #14
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ComplexConcMorphDlg));
     this.m_btnHelp             = new System.Windows.Forms.Button();
     this.m_btnCancel           = new System.Windows.Forms.Button();
     this.m_btnOK               = new System.Windows.Forms.Button();
     this.m_helpProvider        = new System.Windows.Forms.HelpProvider();
     this.groupBox2             = new System.Windows.Forms.GroupBox();
     this.m_glossWsComboBox     = new System.Windows.Forms.ComboBox();
     this.m_glossTextBox        = new SIL.FieldWorks.Common.Widgets.FwTextBox();
     this.groupBox3             = new System.Windows.Forms.GroupBox();
     this.m_entryWsComboBox     = new System.Windows.Forms.ComboBox();
     this.m_entryTextBox        = new SIL.FieldWorks.Common.Widgets.FwTextBox();
     this.groupBox1             = new System.Windows.Forms.GroupBox();
     this.m_formWsComboBox      = new System.Windows.Forms.ComboBox();
     this.m_formTextBox         = new SIL.FieldWorks.Common.Widgets.FwTextBox();
     this.groupBox4             = new System.Windows.Forms.GroupBox();
     this.m_categoryNotCheckBox = new System.Windows.Forms.CheckBox();
     this.m_categoryComboBox    = new SIL.FieldWorks.Common.Widgets.TreeCombo();
     this.groupBox5             = new System.Windows.Forms.GroupBox();
     this.m_inflFeatsTreeView   = new Aga.Controls.Tree.TreeViewAdv();
     this.m_featureColumn       = new Aga.Controls.Tree.TreeColumn();
     this.m_notColumn           = new Aga.Controls.Tree.TreeColumn();
     this.m_valueColumn         = new Aga.Controls.Tree.TreeColumn();
     this.m_featureIcon         = new Aga.Controls.Tree.NodeControls.NodeIcon();
     this.m_featureTextBox      = new Aga.Controls.Tree.NodeControls.NodeTextBox();
     this.m_valueComboBox       = new Aga.Controls.Tree.NodeControls.NodeComboBox();
     this.m_inflNotCheckBox     = new Aga.Controls.Tree.NodeControls.NodeCheckBox();
     this.m_imageList           = new System.Windows.Forms.ImageList(this.components);
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.m_glossTextBox)).BeginInit();
     this.groupBox3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.m_entryTextBox)).BeginInit();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.m_formTextBox)).BeginInit();
     this.groupBox4.SuspendLayout();
     this.groupBox5.SuspendLayout();
     this.SuspendLayout();
     //
     // m_btnHelp
     //
     resources.ApplyResources(this.m_btnHelp, "m_btnHelp");
     this.m_btnHelp.Name = "m_btnHelp";
     this.m_btnHelp.UseVisualStyleBackColor = true;
     this.m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click);
     //
     // m_btnCancel
     //
     resources.ApplyResources(this.m_btnCancel, "m_btnCancel");
     this.m_btnCancel.Name = "m_btnCancel";
     this.m_btnCancel.UseVisualStyleBackColor = true;
     this.m_btnCancel.Click += new System.EventHandler(this.m_btnCancel_Click);
     //
     // m_btnOK
     //
     resources.ApplyResources(this.m_btnOK, "m_btnOK");
     this.m_btnOK.Name = "m_btnOK";
     this.m_btnOK.UseVisualStyleBackColor = true;
     this.m_btnOK.Click += new System.EventHandler(this.m_btnOK_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.m_glossWsComboBox);
     this.groupBox2.Controls.Add(this.m_glossTextBox);
     resources.ApplyResources(this.groupBox2, "groupBox2");
     this.groupBox2.Name = "groupBox2";
     this.m_helpProvider.SetShowHelp(this.groupBox2, ((bool)(resources.GetObject("groupBox2.ShowHelp"))));
     this.groupBox2.TabStop = false;
     //
     // m_glossWsComboBox
     //
     this.m_glossWsComboBox.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_glossWsComboBox.FormattingEnabled = true;
     resources.ApplyResources(this.m_glossWsComboBox, "m_glossWsComboBox");
     this.m_glossWsComboBox.Name = "m_glossWsComboBox";
     this.m_helpProvider.SetShowHelp(this.m_glossWsComboBox, ((bool)(resources.GetObject("m_glossWsComboBox.ShowHelp"))));
     this.m_glossWsComboBox.SelectedIndexChanged += new System.EventHandler(this.m_glossWsComboBox_SelectedIndexChanged);
     //
     // m_glossTextBox
     //
     this.m_glossTextBox.AcceptsReturn      = false;
     this.m_glossTextBox.AdjustStringHeight = true;
     this.m_glossTextBox.BackColor          = System.Drawing.SystemColors.Window;
     this.m_glossTextBox.controlID          = null;
     resources.ApplyResources(this.m_glossTextBox, "m_glossTextBox");
     this.m_glossTextBox.HasBorder = true;
     this.m_glossTextBox.Name      = "m_glossTextBox";
     this.m_helpProvider.SetShowHelp(this.m_glossTextBox, ((bool)(resources.GetObject("m_glossTextBox.ShowHelp"))));
     this.m_glossTextBox.SuppressEnter = true;
     this.m_glossTextBox.WordWrap      = false;
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.m_entryWsComboBox);
     this.groupBox3.Controls.Add(this.m_entryTextBox);
     resources.ApplyResources(this.groupBox3, "groupBox3");
     this.groupBox3.Name = "groupBox3";
     this.m_helpProvider.SetShowHelp(this.groupBox3, ((bool)(resources.GetObject("groupBox3.ShowHelp"))));
     this.groupBox3.TabStop = false;
     //
     // m_entryWsComboBox
     //
     this.m_entryWsComboBox.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_entryWsComboBox.FormattingEnabled = true;
     resources.ApplyResources(this.m_entryWsComboBox, "m_entryWsComboBox");
     this.m_entryWsComboBox.Name = "m_entryWsComboBox";
     this.m_helpProvider.SetShowHelp(this.m_entryWsComboBox, ((bool)(resources.GetObject("m_entryWsComboBox.ShowHelp"))));
     this.m_entryWsComboBox.SelectedIndexChanged += new System.EventHandler(this.m_entryWsComboBox_SelectedIndexChanged);
     //
     // m_entryTextBox
     //
     this.m_entryTextBox.AcceptsReturn      = false;
     this.m_entryTextBox.AdjustStringHeight = true;
     this.m_entryTextBox.BackColor          = System.Drawing.SystemColors.Window;
     this.m_entryTextBox.controlID          = null;
     resources.ApplyResources(this.m_entryTextBox, "m_entryTextBox");
     this.m_entryTextBox.HasBorder = true;
     this.m_entryTextBox.Name      = "m_entryTextBox";
     this.m_helpProvider.SetShowHelp(this.m_entryTextBox, ((bool)(resources.GetObject("m_entryTextBox.ShowHelp"))));
     this.m_entryTextBox.SuppressEnter = true;
     this.m_entryTextBox.WordWrap      = false;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.m_formWsComboBox);
     this.groupBox1.Controls.Add(this.m_formTextBox);
     resources.ApplyResources(this.groupBox1, "groupBox1");
     this.groupBox1.Name    = "groupBox1";
     this.groupBox1.TabStop = false;
     //
     // m_formWsComboBox
     //
     this.m_formWsComboBox.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_formWsComboBox.FormattingEnabled = true;
     resources.ApplyResources(this.m_formWsComboBox, "m_formWsComboBox");
     this.m_formWsComboBox.Name = "m_formWsComboBox";
     this.m_formWsComboBox.SelectedIndexChanged += new System.EventHandler(this.m_formWsComboBox_SelectedIndexChanged);
     //
     // m_formTextBox
     //
     this.m_formTextBox.AcceptsReturn      = false;
     this.m_formTextBox.AdjustStringHeight = true;
     this.m_formTextBox.BackColor          = System.Drawing.SystemColors.Window;
     this.m_formTextBox.controlID          = null;
     resources.ApplyResources(this.m_formTextBox, "m_formTextBox");
     this.m_formTextBox.HasBorder     = true;
     this.m_formTextBox.Name          = "m_formTextBox";
     this.m_formTextBox.SuppressEnter = true;
     this.m_formTextBox.WordWrap      = false;
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.m_categoryNotCheckBox);
     this.groupBox4.Controls.Add(this.m_categoryComboBox);
     resources.ApplyResources(this.groupBox4, "groupBox4");
     this.groupBox4.Name    = "groupBox4";
     this.groupBox4.TabStop = false;
     //
     // m_categoryNotCheckBox
     //
     resources.ApplyResources(this.m_categoryNotCheckBox, "m_categoryNotCheckBox");
     this.m_categoryNotCheckBox.Name = "m_categoryNotCheckBox";
     this.m_categoryNotCheckBox.UseVisualStyleBackColor = true;
     //
     // m_categoryComboBox
     //
     this.m_categoryComboBox.AdjustStringHeight = true;
     this.m_categoryComboBox.BackColor          = System.Drawing.SystemColors.Window;
     this.m_categoryComboBox.DropDownWidth      = 120;
     this.m_categoryComboBox.DroppedDown        = false;
     this.m_categoryComboBox.HasBorder          = true;
     resources.ApplyResources(this.m_categoryComboBox, "m_categoryComboBox");
     this.m_categoryComboBox.Name = "m_categoryComboBox";
     this.m_categoryComboBox.UseVisualStyleBackColor = true;
     //
     // groupBox5
     //
     this.groupBox5.Controls.Add(this.m_inflFeatsTreeView);
     resources.ApplyResources(this.groupBox5, "groupBox5");
     this.groupBox5.Name    = "groupBox5";
     this.groupBox5.TabStop = false;
     //
     // m_inflFeatsTreeView
     //
     this.m_inflFeatsTreeView.BackColor = System.Drawing.SystemColors.Window;
     this.m_inflFeatsTreeView.Columns.Add(this.m_featureColumn);
     this.m_inflFeatsTreeView.Columns.Add(this.m_notColumn);
     this.m_inflFeatsTreeView.Columns.Add(this.m_valueColumn);
     this.m_inflFeatsTreeView.DefaultToolTipProvider = null;
     this.m_inflFeatsTreeView.DragDropMarkColor      = System.Drawing.Color.Black;
     this.m_inflFeatsTreeView.FullRowSelect          = true;
     this.m_inflFeatsTreeView.LineColor = System.Drawing.SystemColors.ControlDark;
     resources.ApplyResources(this.m_inflFeatsTreeView, "m_inflFeatsTreeView");
     this.m_inflFeatsTreeView.Model = null;
     this.m_inflFeatsTreeView.Name  = "m_inflFeatsTreeView";
     this.m_inflFeatsTreeView.NodeControls.Add(this.m_featureIcon);
     this.m_inflFeatsTreeView.NodeControls.Add(this.m_featureTextBox);
     this.m_inflFeatsTreeView.NodeControls.Add(this.m_valueComboBox);
     this.m_inflFeatsTreeView.NodeControls.Add(this.m_inflNotCheckBox);
     this.m_inflFeatsTreeView.SelectedNode = null;
     this.m_inflFeatsTreeView.UseColumns   = true;
     //
     // m_featureColumn
     //
     resources.ApplyResources(this.m_featureColumn, "m_featureColumn");
     this.m_featureColumn.SortOrder = System.Windows.Forms.SortOrder.None;
     //
     // m_notColumn
     //
     resources.ApplyResources(this.m_notColumn, "m_notColumn");
     this.m_notColumn.SortOrder = System.Windows.Forms.SortOrder.None;
     //
     // m_valueColumn
     //
     resources.ApplyResources(this.m_valueColumn, "m_valueColumn");
     this.m_valueColumn.SortOrder = System.Windows.Forms.SortOrder.None;
     //
     // m_featureIcon
     //
     this.m_featureIcon.DataPropertyName = "Image";
     this.m_featureIcon.LeftMargin       = 1;
     this.m_featureIcon.ParentColumn     = this.m_featureColumn;
     this.m_featureIcon.ScaleMode        = Aga.Controls.Tree.ImageScaleMode.Clip;
     //
     // m_featureTextBox
     //
     this.m_featureTextBox.DataPropertyName         = "Text";
     this.m_featureTextBox.IncrementalSearchEnabled = true;
     this.m_featureTextBox.LeftMargin   = 1;
     this.m_featureTextBox.ParentColumn = this.m_featureColumn;
     //
     // m_valueComboBox
     //
     this.m_valueComboBox.DataPropertyName         = "Value";
     this.m_valueComboBox.EditEnabled              = true;
     this.m_valueComboBox.EditOnClick              = true;
     this.m_valueComboBox.IncrementalSearchEnabled = true;
     this.m_valueComboBox.LeftMargin                = 1;
     this.m_valueComboBox.ParentColumn              = this.m_valueColumn;
     this.m_valueComboBox.CreatingEditor           += new System.EventHandler <Aga.Controls.Tree.NodeControls.EditEventArgs>(this.m_valueComboBox_CreatingEditor);
     this.m_valueComboBox.IsEditEnabledValueNeeded += new System.EventHandler <Aga.Controls.Tree.NodeControls.NodeControlValueEventArgs>(this.m_valueComboBox_IsEditEnabledValueNeeded);
     //
     // m_inflNotCheckBox
     //
     this.m_inflNotCheckBox.DataPropertyName      = "IsChecked";
     this.m_inflNotCheckBox.EditEnabled           = true;
     this.m_inflNotCheckBox.LeftMargin            = 1;
     this.m_inflNotCheckBox.ParentColumn          = this.m_notColumn;
     this.m_inflNotCheckBox.IsVisibleValueNeeded += new System.EventHandler <Aga.Controls.Tree.NodeControls.NodeControlValueEventArgs>(this.m_inflNotCheckBox_IsVisibleValueNeeded);
     //
     // m_imageList
     //
     this.m_imageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("m_imageList.ImageStream")));
     this.m_imageList.TransparentColor = System.Drawing.Color.Transparent;
     this.m_imageList.Images.SetKeyName(0, "");
     this.m_imageList.Images.SetKeyName(1, "");
     //
     // ComplexConcMorphDlg
     //
     this.AcceptButton = this.m_btnOK;
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.CancelButton  = this.m_btnCancel;
     this.Controls.Add(this.groupBox5);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.m_btnHelp);
     this.Controls.Add(this.m_btnCancel);
     this.Controls.Add(this.m_btnOK);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "ComplexConcMorphDlg";
     this.m_helpProvider.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp"))));
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.groupBox2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.m_glossTextBox)).EndInit();
     this.groupBox3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.m_entryTextBox)).EndInit();
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.m_formTextBox)).EndInit();
     this.groupBox4.ResumeLayout(false);
     this.groupBox4.PerformLayout();
     this.groupBox5.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Beispiel #15
0
        private void InitializeColumnStageProject()
        {
            #region Инициализация столбцов Этапов
            treeProject.UseColumns = true;

            TreeColumn columnName          = new TreeColumn("Этап", 120);
            TreeColumn columnNameStage     = new TreeColumn("Название", 150);
            TreeColumn columnUser          = new TreeColumn("Ответственный", 160);
            TreeColumn columnDateBegin     = new TreeColumn("Начало (план)", 60);
            TreeColumn columnDateEnd       = new TreeColumn("Завершение (план)", 60);
            TreeColumn columnDateBeginUser = new TreeColumn("Начало (пользв.)", 60);

            TreeColumn columnDateEndUser   = new TreeColumn("Завершение (пользв.)", 60);
            TreeColumn columnStatus        = new TreeColumn("Статус", 60);
            TreeColumn columnDateBeginProg = new TreeColumn("Начало (прогноз)", 60);
            TreeColumn columnDateEndProg   = new TreeColumn("Завершение (прогноз)", 60);
            TreeColumn columnComment       = new TreeColumn("Комментарий", 200);

            //treeProject.Columns.Add(columnName);
            treeProject.Columns.Add(columnNameStage);
            treeProject.Columns.Add(columnUser);
            treeProject.Columns.Add(columnDateBegin);
            treeProject.Columns.Add(columnDateEnd);
            treeProject.Columns.Add(columnDateBeginUser);
            treeProject.Columns.Add(columnDateEndUser);
            treeProject.Columns.Add(columnStatus);
            treeProject.Columns.Add(columnDateBeginProg);
            treeProject.Columns.Add(columnDateEndProg);
            treeProject.Columns.Add(columnComment);

            NodeCheckBox nodeCheck = new NodeCheckBox();
            nodeCheck.ParentColumn = columnNameStage;
            //nodeCheck.ThreeState = true;
            nodeCheck.VirtualMode = false;
            nodeCheck.EditEnabled = true;
            //nodeCheck.IsEditEnabledValueNeeded += IsEditEnabledValueNeeded;
            treeProject.NodeControls.Add(nodeCheck);

            NodeTextBox nodeTextName = new NodeTextBox();
            nodeTextName.DataPropertyName         = "NameStage";
            nodeTextName.ParentColumn             = columnNameStage;
            nodeTextName.IncrementalSearchEnabled = true;
            treeProject.NodeControls.Add(nodeTextName);

            NodeTextBox nodeTextUser = new NodeTextBox();
            nodeTextUser.DataPropertyName         = "User";
            nodeTextUser.ParentColumn             = columnUser;
            nodeTextUser.IncrementalSearchEnabled = true;
            treeProject.NodeControls.Add(nodeTextUser);

            NodeTextBox nodeTextDateBegin = new NodeTextBox();
            nodeTextDateBegin.DataPropertyName         = "DateBegin";
            nodeTextDateBegin.ParentColumn             = columnDateBegin;
            nodeTextDateBegin.IncrementalSearchEnabled = true;
            treeProject.NodeControls.Add(nodeTextDateBegin);

            NodeTextBox nodeTextDateEnd = new NodeTextBox();
            nodeTextDateEnd.DataPropertyName         = "DateEnd";
            nodeTextDateEnd.ParentColumn             = columnDateEnd;
            nodeTextDateEnd.IncrementalSearchEnabled = true;
            treeProject.NodeControls.Add(nodeTextDateEnd);

            NodeTextBox nodeTextDateBeginUser = new NodeTextBox();
            nodeTextDateBeginUser.DataPropertyName         = "DateBeginUser";
            nodeTextDateBeginUser.ParentColumn             = columnDateBeginUser;
            nodeTextDateBeginUser.IncrementalSearchEnabled = true;
            treeProject.NodeControls.Add(nodeTextDateBeginUser);

            NodeTextBox nodeTextDateEndUser = new NodeTextBox();
            nodeTextDateEndUser.DataPropertyName         = "DateEndUser";
            nodeTextDateEndUser.ParentColumn             = columnDateEndUser;
            nodeTextDateEndUser.IncrementalSearchEnabled = false;


            treeProject.NodeControls.Add(nodeTextDateEndUser);

            NodeTextBox nodeTextStatus = new NodeTextBox();
            nodeTextStatus.DataPropertyName         = "Status";
            nodeTextStatus.ParentColumn             = columnStatus;
            nodeTextStatus.IncrementalSearchEnabled = true;
            treeProject.NodeControls.Add(nodeTextStatus);

            NodeTextBox nodeTextDateBeginProg = new NodeTextBox();
            nodeTextDateBeginProg.DataPropertyName         = "DateBeginProg";
            nodeTextDateBeginProg.ParentColumn             = columnDateBeginProg;
            nodeTextDateBeginProg.IncrementalSearchEnabled = true;
            treeProject.NodeControls.Add(nodeTextDateBeginProg);

            NodeTextBox nodeTextDateEndProg = new NodeTextBox();
            nodeTextDateEndProg.DataPropertyName         = "DateEndProg";
            nodeTextDateEndProg.ParentColumn             = columnDateEndProg;
            nodeTextDateEndProg.IncrementalSearchEnabled = true;
            treeProject.NodeControls.Add(nodeTextDateEndProg);

            NodeTextBox nodeTextCommentUser = new NodeTextBox();
            nodeTextCommentUser.DataPropertyName         = "CommentUser";
            nodeTextCommentUser.ParentColumn             = columnComment;
            nodeTextCommentUser.IncrementalSearchEnabled = true;
            treeProject.NodeControls.Add(nodeTextCommentUser);
            #endregion
        }