示例#1
0
		public static bool verifyMedication(Medication medication)
		{
			ScanVerifyWindow scan = new ScanVerifyWindow();
			scan.medication = medication;
			scan.ShowDialog();
			return scan.scanMatches;
		}
示例#2
0
		public static bool verifyPatient(Patient patient)
		{           
			ScanVerifyWindow scan = new ScanVerifyWindow();
			scan.patient = patient;
			scan.ShowDialog();
			return scan.scanMatches;
		}
 private void selectButton_Click(object sender, RoutedEventArgs e)
 {
     switch (PatientPoolControl.VisualState)
     {
         case "AdminVisualState":
             MySqlHelper.addPatientToSimulation(SimulationPoolControl.SelectedSimulation.Id, SelectedPatient.Id);
             Patient.refreshPatientPool(SimulationPoolControl.SelectedSimulation.Id);
             UserAccount.refreshUserAccountPool(SimulationPoolControl.SelectedSimulation.Id);
             MainWindow.Instance.loadBottomGrid(ParentControl);
             break;
         case "StationVisualState":
             if (ScanVerifyWindow.verifyPatient(PatientPoolControl.SelectedPatient) == true)
                 MainWindow.Instance.loadBottomGrid(new PatientViewer(PatientPoolControl.SelectedPatient.Id, DateTime.Today));
             break;
     }
 }
		private void selectButton_Click(object sender, RoutedEventArgs e)
		{
			if (ScanVerifyWindow.verifyMedication(SelectedDose.ForMedication) == true)
				MedicationReconciliationWindow.reconcile(SelectedDose);
		}