예제 #1
0
파일: TextView.cs 프로젝트: nemerle/reko
 protected virtual void OnModelChanged(EventArgs e)
 {
     this.cursorPos = new TextPointer(model.CurrentPosition, 0, 0);
     this.anchorPos = cursorPos;
     ChangeLayout();
     UpdateScrollbar();
     ModelChanged.Fire(this);
 }
예제 #2
0
 protected virtual void OnModelChanged(EventArgs e)
 {
     this.cursorPos = new TextPointer
     {
         Line      = model.StartPosition,
         Span      = 0,
         Character = 0
     };
     this.anchorPos = cursorPos;
     vScroll.Value  = 0;
     ChangeLayout();
     ModelChanged.Fire(this);
 }