public override void ApplyBatchModeAction(RangeWrapper rangeToChange, string suggestion) { int selectedIndex = SearchArray(m_lastSugs, suggestion); if (rangeToChange.Text != suggestion) { //string preText = rangeToChange.Text; if (rangeToChange.TryChangeText(suggestion)) { VerificationWindowBatchMode.CurrentStatus = m_punctuationCheckerEngine.GetMistakeDescription(); // preText + ": " + suggestion; m_punctuationCheckerEngine.CorrectMistake(selectedIndex); base.RefreshForChangeCalled(null, suggestion); m_stats++; } else { m_punctuationCheckerEngine.SkipMistake(); // Do nothing, or do it without making the window lose focus // i.e., do NOT show a message box //MessageBox.Show("تغییر مورد نظر قابل اعمال نیست!"); } } // end of common sections between change and change-all else { m_punctuationCheckerEngine.SkipMistake(); } }
public override void ApplyBatchModeAction(RangeWrapper rangeToChange, string suggestion) { //if (rangeToChange.TryChangeTextCharSensitive(suggestion)) if (rangeToChange.TryChangeText(suggestion)) { AddCurStatsToGlobalStats(); base.RefreshForChangeCalled(m_curVerData.RangeToHighlight, suggestion); } ResetCurStepStats(); }
public override void ApplyBatchModeAction(RangeWrapper rangeToChange, string suggestion) { if (rangeToChange.Text != suggestion) { if (rangeToChange.TryChangeText(suggestion)) { base.RefreshForChangeCalled(m_curVerData.RangeToHighlight, suggestion); m_bachModeStats++; } } }