Beispiel #1
0
 private void PobierzListeTowarow()
 {
     try
     {
         List <Towar> lista = DbAdapterEF.GetListaTowarow();
         listaTowarow = new ObservableCollection <TowarVM>();
         foreach (Towar t in lista)
         {
             listaTowarow.Add(new TowarVM(t));
         }
     }
     catch (Exception ex) { dialog.ShowError(ex); log.Error(ex); throw ex; }
 }