private void btnAddFile_Click(object sender, EventArgs e) { string[] addFiles = BuildLibraryDlg.ShowAddFile(WizardForm, Path.GetDirectoryName(SkylineWindow.DocumentFilePath)); if (addFiles != null) { AddSearchFiles(addFiles); } }
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(); }); }
public void AddSearchFiles(IEnumerable <string> fileNames) { SearchFilenames = BuildLibraryDlg.AddInputFiles(WizardForm, SearchFilenames, fileNames); }