internal bool IsPartOfDvd() { if (folderType == LogicalFolderType.Disc) { return(true); } else if (parent == null) { return(false); } else { return(parent.IsPartOfDvd()); } }
private static ListViewItem createListView(LogicalFolder folder) { ListViewItem lvi = new ListViewItem(folder.PathAndName); lvi.Tag = folder; //if (folder.InDvdFolder()) if (folder.IsPartOfDvd()) { lvi.ImageIndex = (int)LogicalFolderType.DiscCatalog; } else { lvi.ImageIndex = (int)folder.FolderType; } return(lvi); }