//static public byte ImageIndex(ListViewClassIconIndexes IconIndex, TreeNodeViewMode ViewMode)
        public byte ViewModeImageIndex(ListViewClassIconIndexes IconIndex, TreeNodeViewMode ViewMode)
        {
            // return IconIndex * NoOfTreeNodeViewModes + ViewMode;
            int index = (Byte)IconIndex * (Byte)TreeNodeViewMode.NoOfViewModes + (Byte)ViewMode;

            return((byte)Math.Min(index, this.ImageList.Images.Count - 1));
        }
 public GroupItemTreeNode(String itemText, ListViewClassIconIndexes iconIndex, ListViewTreeView ItemTreeView)
     : base(itemText, iconIndex, ItemTreeView)
 {
 }
 public TreeItemTreeNode(Object tag, String itemText, ListViewClassIconIndexes iconIndex, ListViewTreeView ItemTreeView)
     : this(tag, itemText, ItemTreeView.ViewModeImageIndex(iconIndex, TreeNodeViewMode.TNVM_Normal), ItemTreeView.ViewModeImageIndex(iconIndex, TreeNodeViewMode.TNVM_Selected))
 {
 }