protected void RefreshForChangeCalled(string errorText, string selectedSug)
        {
            int inc = selectedSug.Length - errorText.Length;

            //Debug.WriteLine(String.Format("SugLen: {0}, rangeLen: {1}, inc: {2}", selectedSug.Length, errorText.Length, inc));

            m_progInd += inc;
            m_remainedParagraph.Invalidate();
        }
        private bool RefreshContents()
        {
            m_curPar.Invalidate();
            m_rawContent = m_curPar.Text;
            if (String.IsNullOrEmpty(m_rawContent))
            {
                return(false);
            }

            if (NeedRefinedStrings)
            {
                m_contentToVerify = StringUtil.RefineAndFilterPersianWord(m_rawContent);
                if (String.IsNullOrEmpty(m_rawContent))
                {
                    return(false);
                }
            }
            else
            {
                m_contentToVerify = m_rawContent;
            }

            return(true);
        }
 private void RefreshContent()
 {
     m_mainPar.Invalidate();
     m_rawContent = m_mainPar.Text;
 }