public void OpenDirectory(string path) { var fs = new Applications.FileSkimmer(); AppearanceManager.SetupWindow(fs); fs.ChangeDirectory(path); }
public void ResetList() { if (lvitems.LargeImageList == null) { lvitems.LargeImageList = new ImageList(); lvitems.LargeImageList.TransparentColor = SkinEngine.LoadedSkin.ControlColor; lvitems.LargeImageList.ImageSize = new Size(42, 42); FileSkimmer.GetAllTypes(lvitems.LargeImageList); } lvitems.Items.Clear(); if (currentdir == "__system") { //List all drives foreach (var dir in Mounts) { var item = FileSkimmer.ConstructItemAsMount(dir); item.ImageKey = "Mount"; lvitems.Items.Add(item); } } else if (DirectoryExists(currentdir)) { var up = new ListViewItem(); up.ImageKey = "UpOne"; up.Text = "Up one"; up.Tag = "__.."; lvitems.Items.Add(up); foreach (var dir in GetDirectories(currentdir)) { var item = FileSkimmer.ConstructItem(GetDirectoryInfo(dir)); item.ImageKey = "Directory"; lvitems.Items.Add(item); } foreach (var dir in GetFiles(currentdir)) { if (dir.EndsWith(cbfiletypes.SelectedItem as string)) { var item = FileSkimmer.ConstructItem(GetFileInfo(dir)); item.ImageKey = FileSkimmerBackend.GetFileType(dir).ToString(); lvitems.Items.Add(item); } } } }