private void IncomesQueryResult(Collection<Income> collection, string error) { if (error != null) { MessageBoxEx.ShowError("Web access", error, null); return; } if (collection == null || collection.Count <= 0) return; m_IncomeSources = collection.ToObservableCollection<IncomeCollection,Income>();; AttachIncomes(); }
private void PackagesQueryResult(Collection<Package> collection, string error) { if (error != null) { MessageBoxEx.ShowError("Web access", error, null); return; } if (collection == null || collection.Count <= 0) return; PackageCollection packagesList = collection.ToObservableCollection<PackageCollection,Package>();; m_PackageTree.Init(packagesList); TreeView treeView = this.ChildOfType<TreeView>(); treeView.ItemsSource = m_PackageTree.Packages; }
private void TransactionsQueryResult(Collection<Transaction> collection) { if (collection == null || collection.Count <= 0) return; TransactionCollection transactionsList = collection.ToObservableCollection<TransactionCollection,Transaction>();; m_PackageTree.AttachTransactions(transactionsList); }