public void Open_Edit(Custom_Card_Adventure adventureCard) { Origin_Custom_Card = adventureCard; Custom_Card_Adventure.Adventure = adventureCard.Adventure; Custom_Card_Adventure.DataContext = adventureCard.Adventure; Visibility = Visibility.Visible; }
public void Open_Edit(Custom_Card_Adventure adventureCard) { Origin_Custom_Card = adventureCard; Custom_Card_Adventure.AdventureCard = adventureCard.AdventureCard; Custom_Card_Adventure.DataContext = adventureCard.AdventureCard; Visibility = Visibility.Visible; Custom_Card_Adventure.State.IsEnabled = false; }
public Custom_Card_Adventure Add_Adventure(Adventure adventure) { Custom_Card_Adventure card = new Custom_Card_Adventure(adventure); AdventurePanel.Children.Add(card); if (Make.MODEL.GeneralControl.LazyLoad_SkillCards) { if (AdventurePanel.Children.Count >= 96) { card.Visibility = Visibility.Collapsed; } } card.EditButton.Click += EditButton_Click; return(card); }