private void ExecuteAddCardButtonCommand(CardsSection section) { if (section != null) { var card = new ProductCard(); card.Title = "Card " + (section.Cards.Count + 1); section.Cards.Add(card); this.SelectedCard = card; } }
private bool CanExecuteAddCardButtonCommand(CardsSection arg) { return(true); }