Example #1
0
        private async void MainNavi()
        {
            await themeService.LoadThemeAsync();

            themeService.ApplyTheme();
            await languageService.LoadLanguageAsync();

            languageService.ApplyLanguage();
            var connected = Locator.GetService <IDataBaseService>() != null;

            if (connected)
            {
                await CheckSecureKeyAsync();
                await CheckGuestureLockAsync();

                await appIconService.LoadAssets();

                NaviToMain();
            }
            else
            {
                await alertService.DisplayAlertAsync("MyPassword", "connect database error", "exit");
            }
        }
Example #2
0
 protected override void OnStart()
 {
     _themeService.ApplyTheme(_dataStore.LoadOrDefault(PropertiesWrapper.THEME_STORE_KEY, ""));
 }
Example #3
0
        private void SetThemeMethod(object obj)
        {
            var themeName = (string)obj;

            _themeService.ApplyTheme(themeName);
        }