public static SaveFile CreateCharacter(IWin32Window owner)
 {
     using var ccm = new CreateCharacterMenu();
     if (ccm.ShowDialog(owner) == DialogResult.OK)
     {
         return(ccm.SaveFile);
     }
     return(null);
 }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var saveFile = CreateCharacterMenu.CreateCharacter(this);

            if (saveFile != null)
            {
                addLabel(saveFile);
            }
        }