Exemplo n.º 1
0
 void SaveNewVendorMethod(object arg)
 {
     FactoryManager myManager = new FactoryManager();
     myManager.GetVendorManager().CreateNewVendor(vendor.Description, vendor.CompanyName);
     RefreshAction();
     CloseAction();
 }
Exemplo n.º 2
0
 void RefreshVendorList()
 {
     FactoryManager myManager = new FactoryManager();
     var result = myManager.GetVendorManager().GetVendorList();
     List<VendorViewModel> vendorResult = new List<VendorViewModel>();
     foreach (VendorDTO vendor in result)
     {
         vendorResult.Add(new VendorViewModel() { VendorID = vendor.ID, CompanyName = vendor.CompanyName });
     }
     vendors = new ObservableCollection<VendorViewModel>(vendorResult);
 }