-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainViewModel.vb
More file actions
28 lines (21 loc) · 1.12 KB
/
MainViewModel.vb
File metadata and controls
28 lines (21 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Imports System.Collections.ObjectModel
Namespace SimpleSchedulingExample
Public Class MainViewModel
Public Overridable Property Doctors As ObservableCollection(Of Doctor)
Public Overridable Property Appointments As ObservableCollection(Of MedicalAppointment)
Public Sub New()
CreateDoctors()
CreateMedicalAppointments()
End Sub
Private Sub CreateDoctors()
Doctors = New ObservableCollection(Of Doctor)()
Doctors.Add(Doctor.Create(Id:=1, Name:="Stomatologist"))
Doctors.Add(Doctor.Create(Id:=2, Name:="Ophthalmologist"))
Doctors.Add(Doctor.Create(Id:=3, Name:="Surgeon"))
End Sub
Private Sub CreateMedicalAppointments()
Appointments = New ObservableCollection(Of MedicalAppointment)()
Appointments.Add(MedicalAppointment.Create(startTime:=Date.Now.Date.AddHours(10), endTime:=Date.Now.Date.AddHours(11), doctorId:=1, notes:="", location:="101", categoryId:=1, patientName:="Dave Muriel", insuranceNumber:="396-36-XXXX", firstVisit:=True))
End Sub
End Class
End Namespace