-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathViewModel.cs
More file actions
22 lines (18 loc) · 773 Bytes
/
ViewModel.cs
File metadata and controls
22 lines (18 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace Scheduler_CustomAppearance {
public class ReceptionDeskViewModel : INotifyPropertyChanged {
readonly ReceptionDeskData data;
public event PropertyChangedEventHandler PropertyChanged;
public DateTime StartDate { get { return ReceptionDeskData.BaseDate; } }
public IReadOnlyList<MedicalAppointment> MedicalAppointments { get => data.MedicalAppointments; }
public ReceptionDeskViewModel() {
data = new ReceptionDeskData();
}
protected void RaisePropertyChanged(string name) {
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(name));
}
}
}