Ejemplo n.º 1
0
        public Cards()
        {
            InitializeComponent();

            foreach (CardItem item in CardLoader.LoadImages().OrderBy(x => x.CardData.Name))
            {
                lbCards.Items.Add(item);
            }

            foreach (var role in Enum.GetNames(typeof(Role)))
            {
                cbbRole.Items.Add(role);
            }


            tbSearch.TextChanged     += tbSearch_TextChanged;
            slCost.ValueChanged      += slCost_ValueChanged;
            cbbRole.SelectionChanged += cbbRole_SelectionChanged;
        }