private void starButton2_ClickButton(object sender, EventArgs e) { BrowseFolder.ShowDialog(); foreach (var f in new System.IO.DirectoryInfo(BrowseFolder.SelectedPath).GetFiles()) { var nf = new VFile(); nf.FullPath = f.FullName; Files.Add(nf); } SyncUI(); }
private void starButton1_ClickButton(object sender, EventArgs e) { BrowseFile.ShowDialog(); foreach (var f in BrowseFile.FileNames) { var nf = new VFile(); nf.FullPath = f; Files.Add(nf); } SyncUI(); }
private void starButton5_ClickButton(object sender, EventArgs e) { BrowseFile.ShowDialog(); var path = BrowseFile.FileName; path = path.ToLower(); path = path.Replace(".vfs", ""); path = path.Replace(".toc", ""); VirtualFileSystem ofs = new VirtualFileSystem(); ofs.ReadToc(path + ".toc"); Files.Clear(); foreach (var entry in ofs.Enteries) { var nf = new VFile(); nf.FullPath = entry.Path + ":" + entry.Name; Files.Add(nf); } SyncUI(); }