Esempio n. 1
0
        private void SetupSpell()
        {
            Application.Options.AutoFormatReplaceQuotes          = false;
            Application.Options.AutoFormatAsYouTypeReplaceQuotes = false;

            _chkSpell = new CheakSpell
            {
                IgnoreEnglish = RegistaryApplicationSetting.GetRegistaryKey(Util.UtilSystemEnum.ChkIgnoreEnglish) ==
                                Util.UtilSystemEnum.OnKey
                    ? true
                    : false,
                CheakSteem = RegistaryApplicationSetting.GetRegistaryKey(Util.UtilSystemEnum.ChkStemSpell) ==
                             Util.UtilSystemEnum.OnKey
                    ? true
                    : false,
                IgnoreChars = RegistaryApplicationSetting.GetRegistaryKey(Util.UtilSystemEnum.TxtIgnoreList)
            };
        }
Esempio n. 2
0
        public void ChkingTask()
        {
            while (true)
            {
                Thread.Sleep(8000);

                if (RegistaryApplicationSetting.GetRegistaryKey(Util.UtilSystemEnum.ChkRecSpell)
                    .Equals(Util.UtilSystemEnum.OnKey) &&
                    !_isrunningSpellThread)
                {
                    btnSpell_Click(null);
                }

                Thread.Sleep(8000);

                if (RegistaryApplicationSetting.GetRegistaryKey(Util.UtilSystemEnum.ChkPunkRec)
                    .Equals(Util.UtilSystemEnum.OnKey) &&
                    !_isrunningPuncThread)
                {
                    btnPunctuation_Click(null);
                }
            }
        }