コード例 #1
0
        public AttackDesigner(StatBlockDesigner sendingForm)
        {
            parentWindow = sendingForm;
            InitializeComponent();
            tabs = new List <AttackTab>();
            tabControl1.SelectedIndexChanged += new EventHandler(SelectedIndexChanged);
            tabControl1.TabPages.Clear();
            tabs = new List <AttackTab>();

            addNewAttack();
        }
コード例 #2
0
        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();
        }