예제 #1
0
 private void btnAddFile_Click(object sender, EventArgs e)
 {
     string[] addFiles = BuildLibraryDlg.ShowAddFile(WizardForm, Path.GetDirectoryName(SkylineWindow.DocumentFilePath));
     if (addFiles != null)
     {
         AddSearchFiles(addFiles);
     }
 }
예제 #2
0
 private void TestAddPaths(BuildLibraryDlg buildLibraryDlg, string[] paths, bool error)
 {
     RunDlg <AddPathsDlg>(buildLibraryDlg.ShowAddPathsDlg, addPathsDlg =>
     {
         addPathsDlg.FileNames = paths;
         if (error)
         {
             string errorMsg = addPathsDlg.CheckForError();
             Assert.AreNotEqual(string.Empty, errorMsg);
         }
         addPathsDlg.CancelDialog();
     });
 }
예제 #3
0
 public void AddSearchFiles(IEnumerable <string> fileNames)
 {
     SearchFilenames = BuildLibraryDlg.AddInputFiles(WizardForm, SearchFilenames, fileNames);
 }