Exemple #1
0
        private async void LoadJournalDetails()
        {
            var list = await _accountingJournalEndpoint
                       .LoadJournalDetails(new AccountingJournalModel
            {
                BrojTemeljnice  = SelectedJournal.BrojTemeljnice,
                VrstaTemeljnice = SelectedJournal.VrstaTemeljnice
            });

            JournalDetails = new ObservableCollection <AccountingJournalModel>(list);
        }
Exemple #2
0
        private async void LoadJournalDetails()
        {
            if (SelectedJournal != null)
            {
                IsLoading = true;
                var list = await _accountingJournalEndpoint
                           .LoadJournalDetails(new AccountingJournalModel
                {
                    BrojTemeljnice  = SelectedJournal.BrojTemeljnice,
                    VrstaTemeljnice = SelectedJournal.VrstaTemeljnice
                });

                JournalDetails = new ObservableCollection <AccountingJournalModel>(list);
                DeleteJournalCommand.RaiseCanExecuteChanged();
                SumColumns();

                await Application.Current.Dispatcher.BeginInvoke(new Action(DatagridLoaded), DispatcherPriority.ContextIdle, null);
            }
        }