private void HandleProjectChanged(string projectLocation) { SyncContext.Post(cb => { var projectName = Path.GetFileNameWithoutExtension(projectLocation); using (var projectReloadDialog = new ProjectReloadDialog(projectName)) { if (windowManager.ShowDialog(projectReloadDialog) != DialogResult.OK) return; var command = commandFactory.CreateOpenProjectCommand(projectLocation); taskManager.QueueTask(command); } }, null); }
private void HandleProjectChanged(string projectLocation) { SyncContext.Post(cb => { var projectName = Path.GetFileNameWithoutExtension(projectLocation); using (var projectReloadDialog = new ProjectReloadDialog(projectName)) { if (windowManager.ShowDialog(projectReloadDialog) != DialogResult.OK) { return; } var command = commandFactory.CreateOpenProjectCommand(projectLocation); taskManager.QueueTask(command); } }, null); }