///<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; } }
///<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); } }