public override int GetHashCode() { return(17 ^ EditorFontFamily.GetHashCode() ^ EditorFontSize.GetHashCode() ^ EditorHighlightCurrentLine.GetHashCode() ^ EditorOpenLastCursorPosition.GetHashCode() ^ EditorOpenLastFile.GetHashCode() ^ EditorShowEndOfLine.GetHashCode() ^ EditorShowLineNumbers.GetHashCode() ^ EditorShowSpaces.GetHashCode() ^ EditorShowTabs.GetHashCode() ^ EditorVerticalScrollBarVisible.GetHashCode() ^ EditorEncoding.GetHashCode() ^ SynchronizeScrollPositions.GetHashCode() ^ SpellCheckDictionary.GetHashCode() ^ SpellCheckIgnoreCodeBlocks.GetHashCode() ^ SpellCheckIgnoreMarkupTags.GetHashCode() ^ SpellCheckIgnoreWordsWithDigits.GetHashCode() ^ IgnoreTaskbarOnMaximize.GetHashCode() ^ FormatOnSave.GetHashCode() ^ GitHubMarkdown.GetHashCode() ^ Theme.GetHashCode() ^ SinglePaneMargin.GetHashCode() ^ LineEnding.GetHashCode() ^ CustomMarkdownConverter.GetHashCode() ^ CustomMarkdownConverterArgs.GetHashCode() ^ UseDefaultEditor.GetHashCode() ^ YesIDonated.GetHashCode() ^ InsertImagePathsOnly.GetHashCode() ^ CultureLanguage.GetHashCode()); }
public ActionResult SetLanguage(CultureLanguage language, string returnUrl) { switch (language) { case CultureLanguage.EN: Session["localization"] = "EN"; break; default: Session["localization"] = "RU"; break; } return(RedirectToLocal(returnUrl)); }
public void SwichLanguage(CultureLanguage cultureLanguage = CultureLanguage.en_US) { CultureInfo currentCulture = null; switch (cultureLanguage) { case CultureLanguage.vn_VN: currentCulture = new CultureInfo(string.Empty); break; case CultureLanguage.en_US: currentCulture = new CultureInfo(cultures[1]); break; default: currentCulture = new CultureInfo(cultures[1]); break; } UI.Culture = currentCulture; Permission.Culture = currentCulture; Validation.Culture = currentCulture; }
private void SetLanuage() { CultureLanguage cultureLanguage = CultureLanguage.vn_VN; iLocale.SwichLanguage(cultureLanguage); }