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"); } }
protected override void OnStart() { _themeService.ApplyTheme(_dataStore.LoadOrDefault(PropertiesWrapper.THEME_STORE_KEY, "")); }
private void SetThemeMethod(object obj) { var themeName = (string)obj; _themeService.ApplyTheme(themeName); }