private void OnAdd(object sender, EventArgs e) { Image image = (Image)sender; image.SetAnimation(); if (AddCommand != null && AddCommand.CanExecute(ShoppingList)) { AddCommand.Execute(ShoppingList); } }
private void OnAdd(object sender, EventArgs e) { Image image = (Image)sender; image.SetAnimation(); if (AddCommand != null && AddCommand.CanExecute(ShoppingList)) { AddCommand.Execute(ShoppingList); } }