public AttackDesigner(StatBlockDesigner sendingForm) { parentWindow = sendingForm; InitializeComponent(); tabs = new List <AttackTab>(); tabControl1.SelectedIndexChanged += new EventHandler(SelectedIndexChanged); tabControl1.TabPages.Clear(); tabs = new List <AttackTab>(); addNewAttack(); }
public void AddNPC() { StatBlockDesigner addNPC = new StatBlockDesigner(); addNPC.FormClosed += async(sender, e) => { if (addNPC.DialogResult == DialogResult.OK) { await encounter.AddFighter(addNPC.addFighters); UpdateFighterList(); } }; addNPC.Show(); }