Example #1
0
        private void LevelCommandButtons_DeleteClicked(object sender, System.Windows.RoutedEventArgs e)
        {
            CommandListingButtonsControl            button  = (CommandListingButtonsControl)sender;
            StreamPassCustomLevelUpCommandViewModel command = (StreamPassCustomLevelUpCommandViewModel)button.DataContext;

            this.viewModel.DeleteCustomLevelUpCommand(command);
        }
        private void CustomProductCommandButtons_DeleteClicked(object sender, RoutedEventArgs e)
        {
            CommandListingButtonsControl    button  = (CommandListingButtonsControl)sender;
            RedemptionStoreProductViewModel product = (RedemptionStoreProductViewModel)button.DataContext;

            product.Command = null;
        }