void OnNewProject() { NewProjectForm dlg = new NewProjectForm(); if (DialogResult.OK == dlg.ShowDialog(this)) { ExecuteCommand(new AddProjectCommand(new Project(dlg.ProjectName))); RefreshProjectView(); } }