protected void addSpecialFoldersListviewNode(int AImageIndex, String ACode, String AText) { PathListViewItem eachListViewItem = new PathListViewItem(); eachListViewItem.Code = ACode; eachListViewItem.Text = AText; eachListViewItem.ImageIndex = AImageIndex; this.SpecialFoldersListView.ItemsWrapper.Add(eachListViewItem); }
/* nonvirtual */ protected PathListViewItem NewNodeByTextImgKey( string text, string imageKey) { PathListViewItem Result = new PathListViewItem(); Result.Text = text; Result.ImageKey = imageKey; return Result; }
protected void addItemsListviewNode(ItemInfoStruct thisItemInfo) { PathListViewItem eachListViewItem = new PathListViewItem(); eachListViewItem.Code = thisItemInfo.Code; eachListViewItem.Text = thisItemInfo.Text; eachListViewItem.IsFolder = thisItemInfo.IsFolder; eachListViewItem.IsFile = thisItemInfo.IsFile; eachListViewItem.IsLink = thisItemInfo.IsLink; eachListViewItem.LinkDestPath = thisItemInfo.LinkDestPath; if (thisItemInfo.IsDrive) { eachListViewItem.ImageIndex = (thisItemInfo.IsLink ? 4 : 2); } else { if (thisItemInfo.IsFolder) { eachListViewItem.ImageIndex = (thisItemInfo.IsLink ? 5 : 3); } else { eachListViewItem.ImageIndex = 0; } } this.ItemsListView.ItemsWrapper.Add(eachListViewItem); }
/* nonvirtual */ protected PathListViewItem NewNodeByTextImgIndex( string text, int imageIndex) { PathListViewItem Result = new PathListViewItem(); Result.Text = text; Result.ImageIndex = imageIndex; return Result; }
/* nonvirtual */ protected PathListViewItem NewNodeByText(string text) { PathListViewItem Result = new PathListViewItem(); Result.Text = text; return Result; }
/* nonvirtual */ protected PathListViewItem NewNodeByKeyValueImgKey( string key, string value, string imageKey) { PathListViewItem Result = new PathListViewItem(); Result.Name = key; Result.Text = value; Result.ImageKey = imageKey; return Result; }
/* nonvirtual */ protected PathListViewItem NewNodeByKeyValueImgIndex( string key, string value, int imageIndex) { PathListViewItem Result = new PathListViewItem(); Result.Name = key; Result.Text = value; Result.ImageIndex = imageIndex; return Result; }
/* nonvirtual */ protected PathListViewItem NewNodeByKeyValue( string key, string value) { PathListViewItem Result = new PathListViewItem(); Result.Code = key; Result.Text = value; return Result; }