Ejemplo n.º 1
0
		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();
		}
Ejemplo n.º 2
0
		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;
		}
Ejemplo n.º 3
0
		private void TransactionsQueryResult(Collection<Transaction> collection)
		{
			if (collection == null || collection.Count <= 0)
				return;

			TransactionCollection transactionsList = collection.ToObservableCollection<TransactionCollection,Transaction>();;
			m_PackageTree.AttachTransactions(transactionsList);
		}