Example #1
0
        private async Task <Cloud.ServerStatus> OnSelectLocation(Forest forest, bool doCache, bool throwIfError = true)
        {
            IsServiceActive = true;
            Cloud.ServerStatus status = new Cloud.ServerStatus();

            try
            {
                ForestButton button = _forestButtons[forest.Tag.Replace('-', '_')];

                await button.FlagImage.ScaleTo(0.9, 50, Easing.Linear);

                await Task.Delay(100);

                await button.FlagImage.ScaleTo(1, 50, Easing.Linear);

                AnimateButtonTouched(button.FlagHolder, 1500, "#66b9f1", "#E4F1FE", 1);
                AnimateButtonTouched(button.FlagHolder, 1500, "#66b9f1", "#E4F1FE", 1);
                AnimateButtonTouched(button.FlagHolder, 1500, "#66b9f1", "#E4F1FE", 1);

                AppViewModel.DeploymentViewModel.EditDeployment.ForestId = forest.Id;
                await MainView.StackViewSkipBackAsync(new AppSummaryView(AppViewModel));
            }
            catch (Exception ex)
            {
                await ErrorHandler.ExceptionAsync(this, ex);
            }

            IsServiceActive = false;
            return(status);
        }
Example #2
0
        private void UiSettingsShow()
        {
            ThemeLabel.Show();
            ForestButton.Show();
            DesertButton.Show();
            MountainsButton.Show();
            CityButton.Show();
            SunsetButton.Show();

            mDivider1.Show();
            LanguageLabel.Show();
            RussianButton.Show();
            EnglishButton.Show();
        }