예제 #1
0
 ///<summary>Prompts the user to create a new person.</summary>
 ///<remarks>The new Person row, or null if the user clicked cancel.</remarks>
 public static Person Prompt(Person template = null)
 {
     using (var form = new PersonCreator(template)) {
         if (form.ShowDialog() == DialogResult.Cancel)
             return null;
         return form.personEditor.Person;
     }
 }
예제 #2
0
 ///<summary>Prompts the user to create a new person.</summary>
 ///<remarks>The new Person row, or null if the user clicked cancel.</remarks>
 public static Person Prompt(Person template = null)
 {
     using (var form = new PersonCreator(template)) {
         if (form.ShowDialog() == DialogResult.Cancel)
         {
             return(null);
         }
         return(form.personEditor.Person);
     }
 }