예제 #1
0
 /// <summary>
 /// Cancels the dialog.
 /// </summary>
 /// <param name="view">Reference to the calling <see cref="NewProjectView"/>,
 /// used to set its DialogResult to false.
 /// </param>
 public void Cancel(NewProjectView view)
 {
   view.DialogResult = false;
   view.Close();
 }
예제 #2
0
 /// <summary>
 /// Creates the project with the given data.
 /// </summary>
 /// <param name="view">Reference to the calling <see cref="NewProjectView"/>,
 /// used to set its DialogResult to true.
 /// </param>
 public void CreateNewProject(NewProjectView view)
 {
   view.DialogResult = true;
   view.Close();
 }