예제 #1
0
        public List <(Module module, string hero)> SelectHeroes(List <Module> modules, int?numHeroes, string prompt = "Select Heroes:")
        {
            List <(Module module, string hero)> heroes = null;

            using (CardGroupSelectForm heroForm = new CardGroupSelectForm(modules, CardGroupSelectForm.GroupType.Hero, numHeroes, "Hero Select", prompt))
            {
                DialogResult result = heroForm.ShowDialog();
                if (result == DialogResult.OK)
                {
                    heroes = heroForm.SelectedGroups;
                }
            }

            return(heroes);
        }
예제 #2
0
        public List <(Module module, string henchman)> SelectHenchmanVillains(List <Module> modules, int?numVillains, string prompt = "Select Henchman Villains:")
        {
            List <(Module module, string henchman)> villains = null;

            using (CardGroupSelectForm villainForm = new CardGroupSelectForm(modules, CardGroupSelectForm.GroupType.Henchman, numVillains, "Henchman Villain Select", prompt))
            {
                DialogResult result = villainForm.ShowDialog();
                if (result == DialogResult.OK)
                {
                    villains = villainForm.SelectedGroups;
                }
            }

            return(villains);
        }