예제 #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);
 }