public SampleAddViewModel(PatientViewModel patient) { this._patient = patient; _patientName = patient.Name + " " + patient.Surname; this._doctorsVM = new DoctorsViewModel(); this._allDoctors = _doctorsVM.AllDoctors; _labWorker = new LabWorker(); }
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(); }