예제 #1
0
        private void onApplicationLoaded(AppLoadedMessage message)
        {
            settings = message.Settings;

            loadExportFiles();

            setupWatchers();
        }
        private async Task AppLoaded(AppLoadedMessage message)
        {
            this.Email = await this.loginDataService.GetUserName();

            var password = await this.loginDataService.GetPassword();

            if (!string.IsNullOrEmpty(this.Email) && !string.IsNullOrEmpty(password))
            {
                await this.Login(password).ConfigureAwait(false);
            }
        }
예제 #3
0
        private async Task onApplicationLoaded(AppLoadedMessage message)
        {
            settings = message.Settings;

            oldPathToGame = settings.PathToGame;

            viewModel.SelectedType        = ObjectTypes.Texture2D.ToString();
            viewModel.IsShowFilesWithType = true;

            await loadAllFiles();
        }
예제 #4
0
        private void onAppLoaded(AppLoadedMessage message)
        {
            settings = message.Settings;

            MarketTabViewModel market = viewModel.MarketTabs.SingleOrDefault(m => m.Name == settings.SelectedMarket);

            if (market != null)
            {
                market.IsSelected = true;
            }
            else
            {
                viewModel.MarketTabs[0].IsSelected = true;
            }

            List <CurrencyViewEntity> currencyEntities = viewModel.MarketTabs.SelectMany(m => m.Currencies).ToList();

            CurrencyViewEntity cve = currencyEntities.SingleOrDefault(currency => currency.Id == settings.SelectedCurrency);

            if (cve != null)
            {
                cve.IsSelected = true;
            }
            else
            {
                if (viewModel.ShowFavorites)
                {
                    cve = currencyEntities.FirstOrDefault(currency => currency.IsFavorite);
                }

                if (cve == null)
                {
                    viewModel.MarketTabs[0].Currencies[0].IsSelected = true;
                }
            }

            currencyEntities.ForEach(currency => currency.IsFavorite = settings.Favorites.Contains(currency.Id));

            viewModel.ShowFavorites = settings.ShowFavorites;
        }
예제 #5
0
 private void onApplicationLoaded(AppLoadedMessage message)
 {
     settings = message.Settings;
 }