Esempio n. 1
0
 public OverViewViewModel()
 {
     this.chieldViewModel = this;
     this.appointments    = new MyObservableCollection <Appointment>();
     try
     {
         var bc = new BusinessContext();
         foreach (Appointment appointment in bc.GetAllAppointments())
         {
             this.appointments.Add(appointment);
         }
     }
     catch (Exception)
     {
     }
 }