예제 #1
0
 public void startLoadPatientsThread()
 {
     if (loadPatientsThread == null || !loadPatientsThread.IsAlive)
     {
         loadPatientsThread = new Thread(setPatients);
         loadPatientsThread.IsBackground = true;
         loadPatientsThread.Start();
         PatientViewModel.LoadPatients();
     }
 }
예제 #2
0
 public BillingViewModel()
 {
     LoadCommand         = new DelegateCommand(new Action(LoadBillings));
     ArchiveCommand      = new DelegateCommand(new Action(Archive));
     UnarchiveCommand    = new DelegateCommand(new Action(Unarchive));
     DeleteCommand       = new DelegateCommand(new Action(DeleteBilling));
     AddCommand          = new DelegateCommand(new Action(GotoAddBilling));
     EditCommand         = new DelegateCommand(new Action(GotoEditBilling));
     AddPaymentViewModel = new AddPaymentViewModel();
     AddPaymentCommand   = new DelegateCommand(new Action(AddPayment));
     PaymentViewModel    = new PaymentViewModel();
     PatientViewModel    = new PatientViewModel();
     PatientViewModel.LoadPatients();
 }