コード例 #1
0
 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;
     }
 }
コード例 #2
0
 public void Attach(ArchiveBrowserDialog dlg)
 {
     this.dlg = dlg;
     dlg.Load += new EventHandler(dlg_Load);
     dlg.ArchiveTree.DoubleClick += new EventHandler(ArchiveTree_DoubleClick);
 }