private void OnNewProject() { NewProject newProject = new NewProject(); newProject.SetProjectLocation(App.Controller.Config.GetDesktopPath()); newProject.ShowDialog(this); if (newProject.Valid) { Directory.CreateDirectory(newProject.GetProjectLocation()); App.Controller.UserConfig.NewProjectPath = newProject.GetProjectLocation(); App.Controller.CreateNewProject(newProject.GetFilename(), newProject.GetName()); App.Controller.SaveProject(); } }