internal static MedicalAppointment Create(DateTime StartTime, DateTime EndTime, int DoctorId, string Notes, string Location, string PatientName, bool FirstVisit)
        {
            MedicalAppointment apt = MedicalAppointment.Create();

            apt.StartTime   = StartTime;
            apt.EndTime     = EndTime;
            apt.DoctorId    = DoctorId;
            apt.Notes       = Notes;
            apt.Location    = Location;
            apt.PatientName = PatientName;
            apt.FirstVisit  = FirstVisit;
            return(apt);
        }
        private void CreateMedicalAppointments()
        {
            Appointments = new ObservableCollection <MedicalAppointment>();
            Random rand = new Random(DateTime.Now.Millisecond);

            Appointments.Add(MedicalAppointment.Create(StartTime: DateTime.Now.Date.AddHours(10), EndTime: DateTime.Now.Date.AddHours(11), DoctorId: 1, Notes: "", Location: "101", PatientName: "Dave Murrel", FirstVisit: true));
            Appointments.Add(MedicalAppointment.Create(StartTime: DateTime.Now.Date.AddDays(2).AddHours(15), EndTime: DateTime.Now.Date.AddDays(2).AddHours(16), DoctorId: 1, Notes: "", Location: "101", PatientName: "Mike Roller", FirstVisit: true));

            Appointments.Add(MedicalAppointment.Create(StartTime: DateTime.Now.Date.AddDays(1).AddHours(11), EndTime: DateTime.Now.Date.AddDays(1).AddHours(12), DoctorId: 2, Notes: "", Location: "103", PatientName: "Bert Parkins", FirstVisit: true));
            Appointments.Add(MedicalAppointment.Create(StartTime: DateTime.Now.Date.AddDays(2).AddHours(10), EndTime: DateTime.Now.Date.AddDays(2).AddHours(12), DoctorId: 2, Notes: "", Location: "103", PatientName: "Carl Lucas", FirstVisit: false));

            Appointments.Add(MedicalAppointment.Create(StartTime: DateTime.Now.Date.AddHours(12), EndTime: DateTime.Now.Date.AddHours(13), DoctorId: 3, Notes: "Blood test results are required", Location: "104", PatientName: "Brad Barnes", FirstVisit: false));
            Appointments.Add(MedicalAppointment.Create(StartTime: DateTime.Now.Date.AddDays(1).AddHours(14), EndTime: DateTime.Now.Date.AddDays(1).AddHours(15), DoctorId: 3, Notes: "", Location: "104", PatientName: "Richard Fisher", FirstVisit: true));
        }