示例#1
0
 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());
 }
示例#2
0
        public ActionResult SetLanguage(CultureLanguage language, string returnUrl)
        {
            switch (language)
            {
            case CultureLanguage.EN:
                Session["localization"] = "EN";
                break;

            default:
                Session["localization"] = "RU";
                break;
            }

            return(RedirectToLocal(returnUrl));
        }
示例#3
0
        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;
        }
示例#4
0
        private void  SetLanuage()
        {
            CultureLanguage cultureLanguage = CultureLanguage.vn_VN;

            iLocale.SwichLanguage(cultureLanguage);
        }