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;
 }
Beispiel #2
0
        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;
        }