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;
 }
Beispiel #2
0
        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);
        }