Show CustomTreeNode.cs syntax highlighted
using System;
using Whiteboard.MaseWS;
namespace TableWhiteboard_HCI_Intergration.HCI_Objs
{
/// <summary>
/// Summary description for CustomTreeNode.
/// </summary>
public class CustomTreeNode: System.Windows.Forms.TreeNode
{
public TabletVO tabVO;
public CustomTreeNode(TabletVO tabVO) : base(tabVO.tabletProcess.id+":"+tabVO.tabletProcess.name)
{
this.tabVO = tabVO;
if(tabVO.tabletProcess.processType == EStory.EStoryForm.USERSTORY)
{
base.ImageIndex = tabVO.tabletProcess.activityType;
base.SelectedImageIndex = tabVO.tabletProcess.activityType;
}
else if(tabVO.tabletProcess.processType == EStory.EStoryForm.ITERATION)
{
base.ImageIndex = TabletUI.iterationIndex;
base.SelectedImageIndex = TabletUI.iterationIndex;
}
//
// TODO: Add constructor logic here
//
}
public void updateDisplayContent()
{
this.Text = tabVO.tabletProcess.id+":"+tabVO.tabletProcess.name;
this.ImageIndex = tabVO.tabletProcess.activityType;
this.SelectedImageIndex = tabVO.tabletProcess.activityType;
}
}
}
See more files for this project here