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