/// <summary> /// Displays the New Project Dialog. /// </summary> public void NewProjectClick() { using (NewProjectForm f = new NewProjectForm()) { if (f.ShowDialog() == DialogResult.OK) { if (CloseProjectClick()) { var p = ProjectFactory.Default.CreateProject(f.Platform, f.Path); OpenProject(p); } } } }