示例#1
0
 public ScriptGalleryViewModel(ScriptApi api)
 {
     Api       = api;
     _loadFunc = page => Api.Home(page);
     Source    = new IncrementalLoadingCollection <IIncrementalSource <IGallery>, IGallery>(this, onError: OnLoadError, onStartLoading: OnStartLoading, onEndLoading: OnEndLoading);
 }