示例#1
0
        void TranslateToHexViewPosition(ref PegBegEnd stretch)
        {
            int len = stretch.Length;

            TranslateToHexViewPosition(ref stretch.posBeg_);
            if (len > 0)
            {
                --stretch.posEnd_;
            }
            TranslateToHexViewPosition(ref stretch.posEnd_);
            stretch.posEnd_ += 2;
        }
示例#2
0
 void ShowLocation(PegBegEnd stretch)
 {
     if (stretch.posBeg_ < 0)
     {
         return;
     }
     if (txtSource.Tag != null && (txtSource.Tag as SourcefileInfo).EncodingClass == EncodingClass.binary)//hex view present in txtSource
     {
         TranslateToHexViewPosition(ref stretch);
     }
     txtSource.Select(stretch.posBeg_, stretch.posEnd_ - stretch.posBeg_);
     txtSource.ScrollToCaret();
 }