Beispiel #1
0
 public void Open_Edit(Custom_Card_SkillCard custom_Card)
 {
     Origin_Custom_Card          = custom_Card;
     Custom_Card.SkillCardsModel = custom_Card.SkillCardsModel;
     Custom_Card.DataContext     = custom_Card.SkillCardsModel.SkillCards[0];
     Visibility = Visibility.Visible;
 }
        public Custom_Card_SkillCard Add_Card(SkillCardsModel skillCards)
        {
            Custom_Card_SkillCard card = new Custom_Card_SkillCard(skillCards);

            CardsPanel.Children.Add(card);
            if (Make.MODEL.GeneralControl.LazyLoad_SkillCards)
            {
                if (CardsPanel.Children.Count >= 96)
                {
                    card.Visibility = Visibility.Collapsed;
                }
            }
            card.EditButton.Click   += EditButton_Click;
            card.AuthorButton.Click += AuthorButton_Click;
            return(card);
        }