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