Ejemplo n.º 1
0
 private void CreateMedicalAppointments()
 {
     Appointments = new ObservableCollection <MedicalAppointment>();
     Appointments.Add(MedicalAppointment.Create(
                          StartTime: DateTime.Now.Date.AddHours(10), EndTime: DateTime.Now.Date.AddHours(11),
                          DoctorId: 1, Notes: "", Location: "101", PatientName: "Dave Murrel",
                          InsuranceNumber: "111111111", FirstVisit: true, AllDay: false));
     Appointments.Add(MedicalAppointment.Create(
                          StartTime: DateTime.Now.Date.AddHours(11), EndTime: DateTime.Now.Date.AddHours(12),
                          DoctorId: 2, Notes: "", Location: "", PatientName: "Day-off",
                          InsuranceNumber: "111111111", FirstVisit: true, AllDay: true));
 }
        internal static MedicalAppointment Create(DateTime StartTime, DateTime EndTime,
                                                  int DoctorId, string Notes, string Location, string PatientName,
                                                  string InsuranceNumber, bool FirstVisit, bool AllDay)
        {
            MedicalAppointment apt = MedicalAppointment.Create();

            apt.StartTime       = StartTime;
            apt.EndTime         = EndTime;
            apt.DoctorId        = DoctorId;
            apt.Notes           = Notes;
            apt.Location        = Location;
            apt.PatientName     = PatientName;
            apt.InsuranceNumber = InsuranceNumber;
            apt.FirstVisit      = FirstVisit;
            apt.AllDay          = AllDay;
            return(apt);
        }