/// <summary> /// Shows the dialog and returns the name of the created project /// or ConstantDefinitions.CommonValueNone if cancel was pressed /// </summary> /// <returns></returns> public static string ShowAndReturn() { var dia = new CreateNewProject(); dia.ShowDialog(); return(dia.GetProjectName()); }
private void newProjectButton_Click(object sender, RoutedEventArgs e) { m_bExitButtonPressed = true; m_sProjectToBeLoaded = CreateNewProject.ShowAndReturn(); }