Beispiel #1
0
 protected virtual void OnModelChanged(EventArgs e)
 {
     this.cursorPos = new TextPointer(model.CurrentPosition, 0, 0);
     this.anchorPos = cursorPos;
     ChangeLayout();
     UpdateScrollbar();
     ModelChanged.Fire(this);
 }
Beispiel #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);
 }