public static string PromptForProfileName() { Mubox.View.Profile.PromptForProfileNameDialog dlg = new Mubox.View.Profile.PromptForProfileNameDialog(); bool cancel = !dlg.ShowDialog().GetValueOrDefault(false); if (string.IsNullOrEmpty(dlg.ProfileName) || cancel) { throw new ArgumentException("Cancelled", "ProfileName"); } return dlg.ProfileName; }
public static string PromptForProfileName() { Mubox.View.Profile.PromptForProfileNameDialog dlg = new Mubox.View.Profile.PromptForProfileNameDialog(); bool cancel = !dlg.ShowDialog().GetValueOrDefault(false); if (string.IsNullOrEmpty(dlg.ProfileName) || cancel) { throw new ArgumentException("Cancelled", "ProfileName"); } return(dlg.ProfileName); }