Esempio n. 1
0
        private void deleteSupplier_Click(object sender, RoutedEventArgs e)
        {
            Button             button          = (Button)sender;
            ProductosProveedor currentSupplier = button.DataContext as ProductosProveedor;

            if (currentSupplier.idProductoProveedor != 0)
            {
                _productsPresenter.DeleteProductoProveedorById(currentSupplier.idProductoProveedor);
            }
            supplierProductList.Remove(currentSupplier);
        }