Exemplo n.º 1
0
 public AddPharmacyViewModel(AddPharmacy addPharmacyOpen, vwPharmacy pharmacyToEdit)
 {
     pharmacy    = pharmacyToEdit;
     addPharmacy = addPharmacyOpen;
     using (Service1Client wcf = new Service1Client())
     {
         PharmaceuticalManufacturingList = wcf.GetAllPharmaceuticalManufacturing().ToList();
     }
 }
 private void AddNewPharmacyExecute()
 {
     try
     {
         AddPharmacy addPharmacy = new AddPharmacy();
         addPharmacy.ShowDialog();
         using (Service1Client wcf = new Service1Client())
         {
             PharmacyList = wcf.GetAllPharmacy().ToList();
             //PharmaceuticalManufacturingList = wcf.GetAllPharmaceuticalManufacturing().ToList();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }