public async void LoadBook() { StatusMessage = "Učitavam podatke iz baze..."; var primke = await _cashRegisterBookEndpoint.GetAll(); StatusMessage = ""; BookItems = new ObservableCollection <CashRegisterModel>(primke); FilterItems(); LoadAccountingSettings(); }
public async void LoadBook() { IsLoading = true; var primke = await _cashRegisterBookEndpoint.GetAll(); BookItems = new ObservableCollection <CashRegisterModel>(primke); FilterItems(); LoadAccountingSettings(); await Application.Current.Dispatcher.BeginInvoke(new Action(DatagridLoaded), DispatcherPriority.ContextIdle, null); }