private void newProjectBtn_Click(object sender, RoutedEventArgs e) { NewProjectWindow np = new NewProjectWindow(); np.ShowDialog(); // A project was created? if (np.DialogResult.Value) { EditorCommands.AddToProjectHistory(np.ProjectPath); StartEditor(np.ProjectPath); } }
private void newProjectMenuItem_Click(object sender, RoutedEventArgs e) { NewProjectWindow np = new NewProjectWindow(); np.ShowDialog(); // A project was created? if (np.DialogResult.Value) { //Reload(); EditorCommands.LoadProject(np.ProjectPath); EditorCommands.AddToProjectHistory(np.ProjectPath); } }