コード例 #1
0
 public ExplorerTreeNode(ExplorerItem explorerItem)
 {
     this.explorerItem = explorerItem;
     base.Name         = explorerItem.Name;
     base.Text         = explorerItem.Name;
     Path = explorerItem.FullPath;
     if (explorerItem.FileData != null)
     {
         base.ImageIndex         = explorerItem.FileData.ImageIndex;
         base.SelectedImageIndex = explorerItem.FileData.ImageIndex;
     }
 }
コード例 #2
0
 public ListViewExplorerItem(ExplorerItem explorerItem)
 {
     this.explorerItem = explorerItem;
     base.Name         = explorerItem.Name;
     base.Text         = explorerItem.Name;
     if (explorerItem.FileData != null)
     {
         base.ImageIndex = explorerItem.FileData.ImageIndex;
     }
     else
     {
         base.ImageIndex = 0;
     }
 }