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) }; }
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); } } }