Exemplo n.º 1
0
 private void deletePluList_Click(object sender, RoutedEventArgs e)
 {
     if (plusList.Count > 1)
     {
         Button       button     = (Button)sender;
         PLUProductos currentPlu = button.DataContext as PLUProductos;
         if (currentPlu.idPLU != 0)
         {
             _productsPresenter.DeletePluProductoById(currentPlu.idPLU);
         }
         plusList.Remove(currentPlu);
     }
     else
     {
         MessageBox.Show("El producto debe tener almenos un PLU registrado.");
     }
 }