public void Initialize() { var repository = new DemoItemWebServiceRepository(); var source = new DemoItemRepositorySource(repository); _items = new IncrementalLoadingCollection<DemoItem>(source); _items.Loading += (s, e) => { SystemTray.Message = "読み込み中"; SystemTray.IsBusy = true; }; _items.Loaded += (s, e) => { SystemTray.IsBusy = false; }; }
public void Initialize() { System.Diagnostics.Debug.WriteLine("GridViewAndNavigationMainViewModel.Initialize"); var repository = new DemoItemStaticRepository(); var source = new DemoItemRepositorySource(repository); _items = new IncrementalLoadingCollection<DemoItem>(source); }
public void Initialize() { var repository = new DemoItemStaticRepository(); var source = new DemoItemRepositorySource(repository); _items = new IncrementalLoadingCollection<DemoItem>(source); }