Пример #1
0
        public FriendViewModel(Friendship friend)
        {
            Expenses = new ObservableCollection<Expense>();

            this.Friendship = friend;
            LoadExpenses(friend);
        }
Пример #2
0
 private async void LoadExpenses(Friendship friend)
 {
     IEnumerable<Expense> expenses = await proxy.GetExpenses(friend.Id);
     Expenses.AddRange(expenses);
 }