예제 #1
0
        public void AddPC()
        {
            AddFighterWindow addPC = new AddFighterWindow();

            addPC.FormClosed += (sender, e) =>
            {
                if (addPC.DialogResult == DialogResult.OK)
                {
                    encounter.AddFighter(addPC.NewPC);
                    UpdateFighterList();
                }
            };
            addPC.Show();
        }