public async void InitServer() { IsBusy = true; _localServer = new LocalServer(); await _localServer.InitlizeServer(AppManager.Setting.Server.ServerUrl); ServerInitialized = true; await LoadTagsAndSorts(); await LoadWallpapers(); IsBusy = false; }
public async void InitServer() { IsBusy = true; _localServer = new LocalServer(); await _appService.LoadConfig(); await _localServer.InitlizeServer(_appService.Setting.Server.ServerUrl); WallpaperSorce = new WallpaperSorce(_localServer); await WallpaperSorce.LoadTagsAndSorts(); Wallpapers = new IncrementalLoadingCollection <WallpaperSorce, WallpaperServerObj>(WallpaperSorce); IsBusy = false; }