예제 #1
0
        public void CanCreateTripleTreeNode()
        {
            node = new TripleTreeNode();

            Assert.IsNotNull(node);
            Assert.IsInstanceOfType(node, typeof(TripleTreeNode));
            Assert.IsInstanceOfType(node, typeof(System.Windows.Forms.TreeNode));
        }
예제 #2
0
        public void CanCreateTripleTreeNodeByTextParametr()
        {
            //Arrange

            //Act
            node = new TripleTreeNode("Node 1");

            //Assert
            Assert.IsNotNull(node);
            Assert.AreEqual("Node 1", node.Text);
        }
예제 #3
0
        public void CanCreateTripleTreeNodeByTextAndValueParametr()
        {
            //Arrange

            //Act
            node = new TripleTreeNode("Node 2", 2);

            //Assert
            Assert.IsNotNull(node);
            Assert.AreEqual("Node 2", node.Text);
            Assert.AreEqual(2, node.Value);
        }
예제 #4
0
        public void CanAddChildNode()
        {
            //Arrange
            TripleTreeNode child1 = new TripleTreeNode("Child 1");

            //Act
            node.AddChild(child1);

            //Assert
            Assert.AreSame(child1, node.Nodes[0]);
            Assert.AreSame(node, child1.Parent);
        }
예제 #5
0
        public void CanCreateTripleTreeNodeByTextValueAndStateParametr()
        {
            //Arrange

            //Act
            node = new TripleTreeNode("Node 3", 3, System.Windows.Forms.CheckState.Checked);

            //Assert
            Assert.IsNotNull(node);
            Assert.AreEqual("Node 3", node.Text);
            Assert.AreEqual(3, node.Value);
            Assert.AreEqual(System.Windows.Forms.CheckState.Checked, node.CheckState);
        }
예제 #6
0
        public void CanRemoveChildNodeByIndexParametr()
        {
            //Arrange
            TripleTreeNode child1 = new TripleTreeNode("Child 1");

            node.AddChild(child1);

            //Act
            node.RemoveChild(0);

            //Assert
            Assert.AreEqual(0, node.Nodes.Count);
        }
예제 #7
0
        public void CanGetChildNode()
        {
            //Arrange
            TripleTreeNode child1 = new TripleTreeNode("Child 1");

            node.AddChild(child1);

            //Act
            TripleTreeNode actualNode = node.GetChild(0);

            //Assert
            Assert.AreSame(child1, actualNode);
        }
예제 #8
0
        public void ReturnsNullParentWhenItIsNotInstanceOfNestedTripleTreeNodeType()
        {
            //Arrange
            TripleTreeNode superRoot = new TripleTreeNode("Super Root");

            superRoot.Nodes.Add(node);

            //Act
            System.Windows.Forms.TreeNode parent = node.Parent;

            //Assert
            Assert.IsNull(parent);
        }
예제 #9
0
        public void RemoveChildByTextNotFreeMemoryOfNode()
        {
            //Arrange
            TripleTreeNode child1 = new TripleTreeNode("Child 1");

            node.AddChild(child1);

            //Act
            node.RemoveChild("Child 1");

            //Assert
            Assert.IsNotNull(child1);
        }
예제 #10
0
        public void CanCloneNode()
        {
            //Arrange
            node = new TripleTreeNode("Root", 55, System.Windows.Forms.CheckState.Checked);

            //Act
            object actualCopy = node.Clone();

            //Assert
            Assert.ReferenceEquals(node, actualCopy);
            Assert.AreNotSame(node, actualCopy);
            Assert.AreEqual("Root", ((TripleTreeNode)actualCopy).Text);
            Assert.AreEqual(55, ((TripleTreeNode)actualCopy).Value);
            Assert.AreEqual(System.Windows.Forms.CheckState.Checked, ((TripleTreeNode)actualCopy).CheckState);
        }
예제 #11
0
        public void CanRemoveChildNodeByTextParametr()
        {
            //Arrange
            TripleTreeNode child1 = new TripleTreeNode("Child 1");
            TripleTreeNode child2 = new TripleTreeNode("Child 2");

            node.AddChild(child1);
            node.AddChild(child2);

            //Act
            node.RemoveChild("Child 1");

            //Assert
            Assert.AreEqual(1, node.Nodes.Count);
        }
예제 #12
0
        public void AddChildNodeCreateParentReference()
        {
            //Arrange
            TripleTreeNode child = new TripleTreeNode("child");

            node.Nodes.Add(child);

            //Act
            System.Windows.Forms.TreeNode parent = child.Parent;

            //Assert
            Assert.IsNotNull(parent);
            Assert.IsInstanceOfType(parent, typeof(TripleTreeNode));
            Assert.AreSame(node, parent);
        }
예제 #13
0
        public void CanCreateTripleTreeNodeByTextAndValueParametrWithChildren()
        {
            //Arrange
            TripleTreeNode child1 = new TripleTreeNode("Child 1");

            //Act
            node = new TripleTreeNode("Node 4", 4, new TripleTreeNode[] { child1 });

            //Assert
            Assert.IsNotNull(node);
            Assert.AreEqual("Node 4", node.Text);
            Assert.AreEqual(4, node.Value);
            Assert.AreEqual(1, node.Nodes.Count);
            Assert.AreSame(child1, node.Nodes[0]);
        }
예제 #14
0
        public void CanCreateTripleTreeNodeByTextValueAndStateParametrWithChildren()
        {
            //Arrange
            TripleTreeNode child1 = new TripleTreeNode("Child 1");

            //Act
            node = new TripleTreeNode("Node 4", 4, System.Windows.Forms.CheckState.Indeterminate, new TripleTreeNode[] { child1 });

            //Assert
            Assert.IsNotNull(node);
            Assert.AreEqual("Node 4", node.Text);
            Assert.AreEqual(4, node.Value);
            Assert.AreEqual(System.Windows.Forms.CheckState.Indeterminate, node.CheckState);
            Assert.AreEqual(1, node.Nodes.Count);
            Assert.AreSame(child1, node.Nodes[0]);
        }
예제 #15
0
        public void CanRemoveChildsWithEqualsTextOnStartAndEndOfListByTextParametr()
        {
            //Arrange
            TripleTreeNode child1 = new TripleTreeNode("Child 1");
            TripleTreeNode child2 = new TripleTreeNode("Child 2");
            TripleTreeNode child3 = new TripleTreeNode("Child 1");

            node.AddChild(child1);
            node.AddChild(child2);
            node.AddChild(child3);

            //Act
            node.RemoveChild("Child 1");

            //Assert
            Assert.AreEqual(1, node.Nodes.Count);
        }
예제 #16
0
        private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            TreeViewHitTestInfo HitTestInfo = this.treeView1.HitTest(e.X, e.Y);

            if (HitTestInfo != null && HitTestInfo.Location == TreeViewHitTestLocations.StateImage)
            {
                TripleTreeNode node = (TripleTreeNode)e.Node;
                if (node.CheckState == CheckState.Checked)
                {
                    node.CheckState = CheckState.Unchecked;
                }
                else
                {
                    node.CheckState = CheckState.Checked;
                }
            }
        }
예제 #17
0
        public void NodesAreRenumeringAfterRemovingChild()
        {
            //Arrange
            TripleTreeNode child1 = new TripleTreeNode("Child 1");
            TripleTreeNode child2 = new TripleTreeNode("Child 2");
            TripleTreeNode child3 = new TripleTreeNode("Child 3");

            node.AddChild(child1);
            node.AddChild(child2);
            node.AddChild(child3);

            //Act
            node.RemoveChild(1);

            //Assert
            Assert.AreEqual(2, node.Nodes.Count);
            Assert.AreSame(child1, node.Nodes[0]);
            Assert.AreSame(child3, node.Nodes[1]);
        }
예제 #18
0
        public void RemoveChildByIndexThrowArgumentOutOfRangeExceptionWhenDoesNotExistNodeWithThisIndex()
        {
            //Arrange
            TripleTreeNode child1 = new TripleTreeNode("Child 1");

            node.AddChild(child1);

            try
            {
                //Act
                node.RemoveChild(5);
            }
            catch (ArgumentOutOfRangeException e)
            {
                //Assert
                Assert.AreEqual("Заданный аргумент находится вне диапазона допустимых значений.\r\nИмя параметра: index", e.Message);
                return;
            }
            Assert.Fail();
        }
예제 #19
0
        public void CanCloneChildNodes()
        {
            //Arrange
            node = new TripleTreeNode("Root", 55, System.Windows.Forms.CheckState.Checked);
            TripleTreeNode child1  = new TripleTreeNode("Child 1", 551, System.Windows.Forms.CheckState.Unchecked);
            TripleTreeNode child2  = new TripleTreeNode("Child 2", 552, System.Windows.Forms.CheckState.Indeterminate);
            TripleTreeNode child21 = new TripleTreeNode("Child 21", 5551, System.Windows.Forms.CheckState.Checked);

            node.AddChild(child1);
            node.AddChild(child2);
            child2.AddChild(child21);

            //Act
            object actualCopy = node.Clone();

            //Assert
            Assert.AreEqual(node.Nodes.Count, ((TripleTreeNode)actualCopy).Nodes.Count);

            Assert.ReferenceEquals(child1, ((TripleTreeNode)actualCopy).GetChild(0));
            Assert.AreNotSame(child1, ((TripleTreeNode)actualCopy).GetChild(0));
            Assert.AreEqual("Child 1", ((TripleTreeNode)actualCopy).GetChild(0).Text);
            Assert.AreEqual(551, ((TripleTreeNode)actualCopy).GetChild(0).Value);
            Assert.AreEqual(System.Windows.Forms.CheckState.Unchecked, ((TripleTreeNode)actualCopy).GetChild(0).CheckState);

            Assert.ReferenceEquals(child2, ((TripleTreeNode)actualCopy).GetChild(1));
            Assert.AreNotSame(child2, ((TripleTreeNode)actualCopy).GetChild(1));
            Assert.AreEqual("Child 2", ((TripleTreeNode)actualCopy).GetChild(1).Text);
            Assert.AreEqual(552, ((TripleTreeNode)actualCopy).GetChild(1).Value);
            Assert.AreEqual(System.Windows.Forms.CheckState.Indeterminate, ((TripleTreeNode)actualCopy).GetChild(1).CheckState);

            Assert.ReferenceEquals(child21, ((TripleTreeNode)actualCopy).GetChild(1).GetChild(0));
            Assert.AreNotSame(child21, ((TripleTreeNode)actualCopy).GetChild(1).GetChild(0));
            Assert.AreEqual("Child 21", ((TripleTreeNode)actualCopy).GetChild(1).GetChild(0).Text);
            Assert.AreEqual(5551, ((TripleTreeNode)actualCopy).GetChild(1).GetChild(0).Value);
            Assert.AreEqual(System.Windows.Forms.CheckState.Checked, ((TripleTreeNode)actualCopy).GetChild(1).GetChild(0).CheckState);
        }
예제 #20
0
        public void CanCloneTripleTreeNode()
        {
            //Arrange
            TripleTreeNode child1 = new TripleTreeNode("Child 1", 5);
            TripleTreeNode child2 = new TripleTreeNode("CHILD 2", true, System.Windows.Forms.CheckState.Indeterminate);

            node.AddChild(child1);
            node.Nodes.Add(child2);

            //Act
            TripleTreeNode clone = (TripleTreeNode)(node.Clone());

            //Assert
            Assert.ReferenceEquals(node, clone);
            Assert.AreEqual(node.Text, clone.Text);
            Assert.AreEqual(node.Value, clone.Value);
            Assert.AreEqual(node.CheckState, clone.CheckState);
            Assert.AreEqual(node.Nodes.Count, clone.Nodes.Count);
            Assert.ReferenceEquals(node.Nodes[0], clone.Nodes[0]);
            Assert.ReferenceEquals(node.Nodes[1], clone.Nodes[1]);
            Assert.AreNotSame(node, clone);
            Assert.AreNotSame(node.Nodes[0], clone.Nodes[0]);
            Assert.AreNotSame(node.Nodes[1], clone.Nodes[1]);
        }
예제 #21
0
 public void TestInit()
 {
     node = new TripleTreeNode("Root", 0, System.Windows.Forms.CheckState.Checked);
 }
예제 #22
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.Windows.Forms.Button button1;
            this.dataGridView1 = new System.Windows.Forms.DataGridView();
            this.idDataGridViewTextBoxColumn             = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.surnameDataGridViewTextBoxColumn        = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.firstnameDataGridViewTextBoxColumn      = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.patronymicnameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.loginDataGridViewTextBoxColumn          = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.saltDataGridViewTextBoxColumn           = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.passwordDataGridViewTextBoxColumn       = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.departmentDataGridViewTextBoxColumn     = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.creatoridDataGridViewTextBoxColumn      = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.createdateDataGridViewTextBoxColumn     = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.modifieridDataGridViewTextBoxColumn     = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.modifydateDataGridViewTextBoxColumn     = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.headerContextMenuStrip1 = new ProjectKernel.Controls.HeaderContextMenuStrip();
            this.usersBindingSource      = new System.Windows.Forms.BindingSource(this.components);
            this.dBTESTDataSet           = new KernelTest.DBTESTDataSet();
            this.usersTableAdapter       = new KernelTest.DBTESTDataSetTableAdapters.UsersTableAdapter();
            this.checkedListBox1         = new System.Windows.Forms.CheckedListBox();
            this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components);
            this.treeView1 = new System.Windows.Forms.TreeView();
            button1        = new System.Windows.Forms.Button();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dBTESTDataSet)).BeginInit();
            this.SuspendLayout();
            //
            // button1
            //
            button1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            button1.Location = new System.Drawing.Point(620, 485);
            button1.Name     = "button1";
            button1.Size     = new System.Drawing.Size(75, 23);
            button1.TabIndex = 1;
            button1.Text     = "button1";
            button1.UseVisualStyleBackColor = true;
            //
            // dataGridView1
            //
            this.dataGridView1.AllowUserToAddRows      = false;
            this.dataGridView1.AllowUserToOrderColumns = true;
            this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                               | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right)));
            this.dataGridView1.AutoGenerateColumns         = false;
            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
                this.idDataGridViewTextBoxColumn,
                this.surnameDataGridViewTextBoxColumn,
                this.firstnameDataGridViewTextBoxColumn,
                this.patronymicnameDataGridViewTextBoxColumn,
                this.loginDataGridViewTextBoxColumn,
                this.saltDataGridViewTextBoxColumn,
                this.passwordDataGridViewTextBoxColumn,
                this.departmentDataGridViewTextBoxColumn,
                this.creatoridDataGridViewTextBoxColumn,
                this.createdateDataGridViewTextBoxColumn,
                this.modifieridDataGridViewTextBoxColumn,
                this.modifydateDataGridViewTextBoxColumn
            });
            this.dataGridView1.ContextMenuStrip  = this.headerContextMenuStrip1;
            this.dataGridView1.DataSource        = this.usersBindingSource;
            this.dataGridView1.Location          = new System.Drawing.Point(13, 12);
            this.dataGridView1.MultiSelect       = false;
            this.dataGridView1.Name              = "dataGridView1";
            this.dataGridView1.ReadOnly          = true;
            this.dataGridView1.RowHeadersVisible = false;
            this.dataGridView1.SelectionMode     = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
            this.dataGridView1.Size              = new System.Drawing.Size(682, 143);
            this.dataGridView1.TabIndex          = 2;
            //
            // idDataGridViewTextBoxColumn
            //
            this.idDataGridViewTextBoxColumn.DataPropertyName = "id";
            this.idDataGridViewTextBoxColumn.HeaderText       = "id";
            this.idDataGridViewTextBoxColumn.Name             = "idDataGridViewTextBoxColumn";
            this.idDataGridViewTextBoxColumn.ReadOnly         = true;
            //
            // surnameDataGridViewTextBoxColumn
            //
            this.surnameDataGridViewTextBoxColumn.DataPropertyName = "surname";
            this.surnameDataGridViewTextBoxColumn.HeaderText       = "surname";
            this.surnameDataGridViewTextBoxColumn.Name             = "surnameDataGridViewTextBoxColumn";
            this.surnameDataGridViewTextBoxColumn.ReadOnly         = true;
            //
            // firstnameDataGridViewTextBoxColumn
            //
            this.firstnameDataGridViewTextBoxColumn.DataPropertyName = "first_name";
            this.firstnameDataGridViewTextBoxColumn.HeaderText       = "first_name";
            this.firstnameDataGridViewTextBoxColumn.Name             = "firstnameDataGridViewTextBoxColumn";
            this.firstnameDataGridViewTextBoxColumn.ReadOnly         = true;
            //
            // patronymicnameDataGridViewTextBoxColumn
            //
            this.patronymicnameDataGridViewTextBoxColumn.DataPropertyName = "patronymic_name";
            this.patronymicnameDataGridViewTextBoxColumn.HeaderText       = "patronymic_name";
            this.patronymicnameDataGridViewTextBoxColumn.Name             = "patronymicnameDataGridViewTextBoxColumn";
            this.patronymicnameDataGridViewTextBoxColumn.ReadOnly         = true;
            //
            // loginDataGridViewTextBoxColumn
            //
            this.loginDataGridViewTextBoxColumn.DataPropertyName = "login";
            this.loginDataGridViewTextBoxColumn.HeaderText       = "login";
            this.loginDataGridViewTextBoxColumn.Name             = "loginDataGridViewTextBoxColumn";
            this.loginDataGridViewTextBoxColumn.ReadOnly         = true;
            //
            // saltDataGridViewTextBoxColumn
            //
            this.saltDataGridViewTextBoxColumn.DataPropertyName = "salt";
            this.saltDataGridViewTextBoxColumn.HeaderText       = "salt";
            this.saltDataGridViewTextBoxColumn.Name             = "saltDataGridViewTextBoxColumn";
            this.saltDataGridViewTextBoxColumn.ReadOnly         = true;
            //
            // passwordDataGridViewTextBoxColumn
            //
            this.passwordDataGridViewTextBoxColumn.DataPropertyName = "password";
            this.passwordDataGridViewTextBoxColumn.HeaderText       = "password";
            this.passwordDataGridViewTextBoxColumn.Name             = "passwordDataGridViewTextBoxColumn";
            this.passwordDataGridViewTextBoxColumn.ReadOnly         = true;
            //
            // departmentDataGridViewTextBoxColumn
            //
            this.departmentDataGridViewTextBoxColumn.DataPropertyName = "department";
            this.departmentDataGridViewTextBoxColumn.HeaderText       = "department";
            this.departmentDataGridViewTextBoxColumn.Name             = "departmentDataGridViewTextBoxColumn";
            this.departmentDataGridViewTextBoxColumn.ReadOnly         = true;
            //
            // creatoridDataGridViewTextBoxColumn
            //
            this.creatoridDataGridViewTextBoxColumn.DataPropertyName = "creator_id";
            this.creatoridDataGridViewTextBoxColumn.HeaderText       = "creator_id";
            this.creatoridDataGridViewTextBoxColumn.Name             = "creatoridDataGridViewTextBoxColumn";
            this.creatoridDataGridViewTextBoxColumn.ReadOnly         = true;
            //
            // createdateDataGridViewTextBoxColumn
            //
            this.createdateDataGridViewTextBoxColumn.DataPropertyName = "create_date";
            this.createdateDataGridViewTextBoxColumn.HeaderText       = "create_date";
            this.createdateDataGridViewTextBoxColumn.Name             = "createdateDataGridViewTextBoxColumn";
            this.createdateDataGridViewTextBoxColumn.ReadOnly         = true;
            //
            // modifieridDataGridViewTextBoxColumn
            //
            this.modifieridDataGridViewTextBoxColumn.DataPropertyName = "modifier_id";
            this.modifieridDataGridViewTextBoxColumn.HeaderText       = "modifier_id";
            this.modifieridDataGridViewTextBoxColumn.Name             = "modifieridDataGridViewTextBoxColumn";
            this.modifieridDataGridViewTextBoxColumn.ReadOnly         = true;
            //
            // modifydateDataGridViewTextBoxColumn
            //
            this.modifydateDataGridViewTextBoxColumn.DataPropertyName = "modify_date";
            this.modifydateDataGridViewTextBoxColumn.HeaderText       = "modify_date";
            this.modifydateDataGridViewTextBoxColumn.Name             = "modifydateDataGridViewTextBoxColumn";
            this.modifydateDataGridViewTextBoxColumn.ReadOnly         = true;
            //
            // headerContextMenuStrip1
            //
            this.headerContextMenuStrip1.BackColor = System.Drawing.SystemColors.ControlLightLight;
            this.headerContextMenuStrip1.IsFilterDateAndTimeEnabled = false;
            this.headerContextMenuStrip1.IsFilterEnabled            = false;
            this.headerContextMenuStrip1.IsSortEnabled = false;
            this.headerContextMenuStrip1.MinimumSize   = new System.Drawing.Size(186, 97);
            this.headerContextMenuStrip1.Name          = "headerContextMenuStrip1";
            this.headerContextMenuStrip1.Size          = new System.Drawing.Size(223, 326);
            //
            // usersBindingSource
            //
            this.usersBindingSource.DataMember = "Users";
            this.usersBindingSource.DataSource = this.dBTESTDataSet;
            //
            // dBTESTDataSet
            //
            this.dBTESTDataSet.DataSetName             = "DBTESTDataSet";
            this.dBTESTDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            //
            // usersTableAdapter
            //
            this.usersTableAdapter.ClearBeforeFill = true;
            //
            // checkedListBox1
            //
            this.checkedListBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                                 | System.Windows.Forms.AnchorStyles.Left)
                                                                                | System.Windows.Forms.AnchorStyles.Right)));
            this.checkedListBox1.FormattingEnabled = true;
            this.checkedListBox1.Items.AddRange(new object[] {
                "1",
                "2",
                "3",
                "4"
            });
            this.checkedListBox1.Location = new System.Drawing.Point(12, 161);
            this.checkedListBox1.Name     = "checkedListBox1";
            this.checkedListBox1.Size     = new System.Drawing.Size(683, 94);
            this.checkedListBox1.TabIndex = 3;
            //
            // treeView1
            //
            this.treeView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                           | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
            this.treeView1.CheckBoxes = true;
            //this.treeView1.StateImageList = GetCheckImages();
            this.treeView1.StateImageList = new System.Windows.Forms.ImageList();
            this.treeView1.StateImageList.Images.Add("1", ProjectKernel.Properties.Resources.MenuStrip_OrderASCnum);
            this.treeView1.StateImageList.Images.Add("2", ProjectKernel.Properties.Resources.MenuStrip_OrderDESCtxt);
            this.treeView1.StateImageList.Images.Add("3", ProjectKernel.Properties.Resources.MenuStrip_OrderDESCbool);
            this.treeView1.Location = new System.Drawing.Point(13, 262);
            this.treeView1.Name     = "treeView1";
            this.treeView1.BeginUpdate();
            TripleTreeNode treeNode1 = new TripleTreeNode("5", 5, System.Windows.Forms.CheckState.Unchecked);
            TripleTreeNode treeNode4 = new TripleTreeNode("6", 6, System.Windows.Forms.CheckState.Unchecked);

            treeNode4.CreateChild("6.1", 61, System.Windows.Forms.CheckState.Unchecked);
            treeNode4.CreateChild("6.2", 62, System.Windows.Forms.CheckState.Unchecked);
            treeNode4.CreateChild("6.3", 63, System.Windows.Forms.CheckState.Unchecked);
            TripleTreeNode treeNode5 = new TripleTreeNode("7", 7, System.Windows.Forms.CheckState.Unchecked);

            this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
                treeNode1,
                treeNode4,
                treeNode5
            });
            this.treeView1.EndUpdate();

            //treeView1.StateImageList = new System.Windows.Forms.ImageList();
            //treeView1.StateImageList.Images.Add(System.Drawing.SystemIcons.Exclamation);
            // Add some nodes to the TreeView and the TreeView to the form.
            //treeView1.Nodes.Add("Node1");
            //treeView1.Nodes.Add("Node2");

            this.treeView1.Size            = new System.Drawing.Size(682, 97);
            this.treeView1.TabIndex        = 4;
            this.treeView1.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView1_NodeMouseClick);
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(707, 520);
            this.Controls.Add(this.treeView1);
            this.Controls.Add(this.checkedListBox1);
            this.Controls.Add(this.dataGridView1);
            this.Controls.Add(button1);
            this.Menu  = this.mainMenu1;
            this.Name  = "Form1";
            this.Text  = "Form1";
            this.Load += new System.EventHandler(this.Form1_Load);
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dBTESTDataSet)).EndInit();
            this.ResumeLayout(false);
        }