Beispiel #1
0
        public CalendarViewModel(MedicXProject medicXProject)
        {
            this.medicXProject = medicXProject ?? throw new ArgumentNullException(nameof(medicXProject));

            int year = 1980;

            januaryDate  = new DateTime(year, 01, 01);
            februaryDate = new DateTime(year, 02, 01);
            marchDate    = new DateTime(year, 03, 01);

            IEnumerable <DateTime> dates = medicXProject.MedicalEvents
                                           .Where(x => x.Date >= new DateTime(year, 01, 01) && x.Date <= new DateTime(year, 12, 31))
                                           .Select(x => x.Date);

            januarySelectedDates = new ObservableCollection <DateTime>(dates);
        }
Beispiel #2
0
        public SaveCommand(MedicXProject medicXProject)
        {
            this.medicXProject = medicXProject ?? throw new ArgumentNullException(nameof(medicXProject));

            this.medicXProject.StatusChanged += HandleStatusChanged;
        }
Beispiel #3
0
 public AddMedicCommand(MedicXProject medicXProject)
 {
     this.medicXProject = medicXProject ?? throw new ArgumentNullException(nameof(medicXProject));
 }
Beispiel #4
0
 public void LoadProject(string connectionString)
 {
     CurrentProject = new MedicXProject(connectionString);
 }