private void fnRetrieveStyling(Windows.Storage.ApplicationDataContainer localSettings) { if (localSettings.Values["loginStrfunctionURL"].ToString() != null) { Login.Instance.propStrFunctionURL = localSettings.Values["LoginStrFunctionURL"].ToString(); Login.Instance.propStrSystemUsed = "client_" + localSettings.Values["LoginStrSystem"].ToString().ToLower(); viewSetting.propStrUsername = localSettings.Values["SettingsUsername"].ToString(); viewSetting.propStrSystem = Login.Instance.propStrSystemUsed; viewSetting.propStrUsername = localSettings.Values["SettingsUsername"].ToString(); viewSetting.propObSetting.intSystemId = Int32.Parse(localSettings.Values["SettingsSystemId"].ToString()); viewSetting.propObSetting.intInterfaceColumns = Int32.Parse(localSettings.Values["Settingcolumns"].ToString()); viewSetting.propObSetting.RSSTitle = localSettings.Values["SettingsRSSTitle"].ToString(); viewSetting.propObSetting.RSSFeed = localSettings.Values["SettingsRSSFeed"].ToString(); viewSetting.propObSetting.boolInterfaceStoreUsername = Boolean.Parse(localSettings.Values["SettingsStoreUserName"].ToString()); viewSetting.propObSetting.strImageLogoUrl = localSettings.Values["SettingsStoreLogoURL"].ToString(); viewSetting.propObSetting.strImageBackground = localSettings.Values["SettingsImageBackgroundStr"].ToString(); viewSetting.propObSetting.strFontColors = localSettings.Values["SettingsStoreFontColors"].ToString(); viewSetting.propObSetting.strFontFaces = localSettings.Values["SettingsStoreFontFaces"].ToString(); viewSetting.propObSetting.strFontSizes = localSettings.Values["SettingsStoreFontSizes"].ToString(); viewSetting.propObSetting.keywords = localSettings.Values["SettingsStoreKeywords"].ToString(); myStyle.assignToStyling(viewSetting.propObSetting); } }
private async void navigateToMain() { MessageDialog mymessage = null; Login myLogin = Login.Instance; if (myLogin.propIntErrorId == 0) { Task t = viewSetting.fn_retrieveConfigPrimaryData(); await viewSetting.fn_retrieveSettingsbuttonData(); viewStyling.assignToStyling(viewSetting.propObSetting); viewStyling.strUserName = viewSetting.propStrUsername; cacheLoginSettings(); progressBar.IsActive = false; Frame.Navigate(typeof(HomePage)); } else { progressBar.IsActive = false; string strErrorString = "Error \n" + myLogin.propIntErrorId + " : " + myLogin.propStrError; mymessage = new MessageDialog(strErrorString); await mymessage.ShowAsync(); loginclickbutton.IsEnabled = true; } }