public EstateViewModel()
        {
            Transactions = new ObservableCollection <Transaction>();
            dbContext    = EstateManagerContext.Current;

            updateContent();
        }
Exemple #2
0
        protected async override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            await EstateManagerContext.InitializeAsync();

            Task.Run(SampleDataCreator.createSampleDataAsync);
        }
 public AppointmentViewModel()
 {
     dbContext    = EstateManagerContext.Current;
     Appointments = new ObservableCollection <Appointment>();
     loadAppointments(DateTime.Now);
 }