public EstateViewModel() { Transactions = new ObservableCollection <Transaction>(); dbContext = EstateManagerContext.Current; updateContent(); }
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); }