Ejemplo n.º 1
0
 private void UpdateProductGridView(GridViewRowInfo currentRow)
 {
     try
     {
         long     supplierId       = Convert.ToInt64(currentRow.Cells["SupplierId"].Value);
         Supplier selectedSupplier = SupplierViewModel.GetEntity(supplierId);
         RgvProducts.DataSource = ProductViewModel.GetAllEntities(selectedSupplier);
     }
     catch (NullReferenceException)
     {
     }
 }
Ejemplo n.º 2
0
        private Supplier GetSelectedSupplier(GridViewRowInfo currentRow)
        {
            long supplierId = (long)currentRow.Cells["SupplierId"].Value;

            return(SupplierViewModel.GetEntity(supplierId));
        }