void Load() { MemoServiceClient client = new MemoServiceClient(); client.GetMemosCompleted += (sender, e) => { if (e.Error == null) { _items = new BindableCollection<MemoViewModel>(e.Result.Select(x => MapToMemoViewModel(x))); NotifyOfPropertyChange(() => Items); IsBusy = false; } }; client.GetMemosAsync(); IsBusy = true; }
void Load() { MemoServiceClient client = new MemoServiceClient(); client.GetMemosCompleted += (sender, e) => { if (e.Error == null) { _items = new BindableCollection <MemoViewModel>(e.Result.Select(x => MapToMemoViewModel(x))); NotifyOfPropertyChange(() => Items); IsBusy = false; } }; client.GetMemosAsync(); IsBusy = true; }