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