public static string ShowForm()
 {
     using (NamePromptForm form = new NamePromptForm())
     {
         form.ShowDialog();
         return(form._playerName);
     }
 }
        void ShowNamePromptForm()
        {
            string playerName = NamePromptForm.ShowForm();

            if (string.IsNullOrWhiteSpace(playerName))
            {
                playerName = "Unknown";
            }

            this.Model.SavePlayer(playerName);
        }