public static string PromptForClientName() { Mubox.View.PromptForClientNameDialog dlg = new Mubox.View.PromptForClientNameDialog(); bool cancel = !dlg.ShowDialog().GetValueOrDefault(false); if (string.IsNullOrEmpty(dlg.ClientName) || cancel) { throw new ArgumentException("Cancelled", "clientName"); } return dlg.ClientName; }
public static string PromptForClientName() { Mubox.View.PromptForClientNameDialog dlg = new Mubox.View.PromptForClientNameDialog(); bool cancel = !dlg.ShowDialog().GetValueOrDefault(false); if (string.IsNullOrEmpty(dlg.ClientName) || cancel) { throw new ArgumentException("Cancelled", "clientName"); } return(dlg.ClientName); }