Opc.Ua.ServerTest.TestCaseTreeCtrl.UpdateNode C# (CSharp) Method

UpdateNode() protected method

protected UpdateNode ( TreeNode treeNode, object item, string text, string icon ) : void
treeNode System.Windows.Forms.TreeNode
item object
text string
icon string
return void
		protected override void UpdateNode(TreeNode treeNode, object item, string text, string icon)
        {
            base.UpdateNode(treeNode, item, text, icon);

            ServerTestCase testCase = item as ServerTestCase;

            if (testCase != null)
            {
                treeNode.Checked = testCase.Enabled;
            }

            if (testCase.Breakpoint)
            {
                treeNode.ImageKey = treeNode.SelectedImageKey = GuiUtils.Icons.Method;
            }
            else
            {
                treeNode.ImageKey = treeNode.SelectedImageKey = GuiUtils.Icons.Property;
            }
        }
        #endregion