private void AddFiles() { using (var openFileDialog = Dialogs.CreateAddFilesDialog()) { if (openFileDialog.ShowDialog(this) != DialogResult.OK) { return; } var command = commandFactory.CreateAddFilesCommand(openFileDialog.FileNames); taskManager.QueueTask(command); } }
private void addFilesToolStripMenuItem_Click(object sender, EventArgs e) { using (var openFileDialog = Dialogs.CreateAddFilesDialog()) { if (openFileDialog.ShowDialog(this) != DialogResult.OK) { return; } var command = commandFactory.CreateAddFilesCommand(openFileDialog.FileNames); taskManager.QueueTask(command); } }
private void AddFiles() { var files = new List <string>(); foreach (var file in Arguments.Files) { if (!fileSystem.FileExists(file)) { continue; } if (Path.GetExtension(file) == TestProject.Extension) { OpenProject(file); return; } files.Add(file); } var command = commandFactory.CreateAddFilesCommand(files); taskManager.QueueTask(command); }
public void AddFiles(string[] fileNames) { var command = commandFactory.CreateAddFilesCommand(fileNames); taskManager.QueueTask(command); }