Exemplo n.º 1
0
        public async void InitServer()
        {
            IsBusy       = true;
            _localServer = new LocalServer();
            await _localServer.InitlizeServer(AppManager.Setting.Server.ServerUrl);

            ServerInitialized = true;
            await LoadTagsAndSorts();
            await LoadWallpapers();

            IsBusy = false;
        }
Exemplo n.º 2
0
        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;
        }