public void generateName()
 {
     using (NameDialog n = new NameDialog()) {
         n.EntryText = "Battlefield";
         n.LabelText = "Enter the stage name. (Use \\n for a line break.)\nType just ] to launch genname.bat/genname.exe instead.";
         if (n.ShowDialog() == DialogResult.OK)
         {
             if (n.EntryText == "]")
             {
                 generateNameExternal();
             }
             else
             {
                 if (fontSettings == null)
                 {
                     changeFrontStnameFont();
                 }
                 if (fontSettings == null)
                 {
                     return;
                 }
                 Bitmap bmp      = NameCreator.createImage(fontSettings, n.EntryText);
                 string tempfile = TempFiles.Create(".png");
                 bmp.Save(tempfile);
                 Replace(frontstname, tempfile);
             }
         }
     }
 }
 public void changeFrontStnameFont()
 {
     fontSettings = NameCreator.selectFont(fontSettings) ?? fontSettings;
 }