public ArchivedFile UserSelectFileFromArchive(ICollection<ArchiveDirectoryEntry> archiveEntries) { var uiSvc = services.GetService<IDecompilerShellUiService>(); if (uiSvc == null) return null; using (var dlg = new ArchiveBrowserDialog()) { dlg.ArchiveEntries = archiveEntries; if (uiSvc.ShowModalDialog(dlg) == DialogResult.OK) return dlg.GetSelectedFile(); else return null; } }
public ArchivedFile UserSelectFileFromArchive(ICollection <ArchiveDirectoryEntry> archiveEntries) { var uiSvc = services.GetService <IDecompilerShellUiService>(); if (uiSvc == null) { return(null); } using (var dlg = new ArchiveBrowserDialog()) { dlg.ArchiveEntries = archiveEntries; if (uiSvc.ShowModalDialog(dlg) == DialogResult.OK) { return(dlg.GetSelectedFile()); } else { return(null); } } }
public void Attach(ArchiveBrowserDialog dlg) { this.dlg = dlg; dlg.Load += new EventHandler(dlg_Load); dlg.ArchiveTree.DoubleClick += new EventHandler(ArchiveTree_DoubleClick); }