Exemple #1
0
 public SampleAddViewModel(PatientViewModel patient)
 {
     this._patient    = patient;
     _patientName     = patient.Name + " " + patient.Surname;
     this._doctorsVM  = new DoctorsViewModel();
     this._allDoctors = _doctorsVM.AllDoctors;
     _labWorker       = new LabWorker();
 }
Exemple #2
0
        static void Main(string[] args)
        {
            Clock     timer     = new Clock();
            Trainer   trainer   = new Trainer();
            LabWorker labWorker = new LabWorker();

            trainer.Register(timer);
            labWorker.Register(timer);
            Console.WriteLine("Time to measure: 5 seconds... Start!");
            timer.StartTimer(5000);

            Console.ReadLine();
        }