private void NotifyCursorMoved(Screen screen) { UpdateWindow(screen); if (CursorRow != lastNotifySpan.StartRow) { if (RowChanged != null) { RowChanged(this, new RowChangedEventArgs(lastNotifySpan.StartRow, CursorRow)); } } if (Selection != lastNotifySpan) { if (SelectionChanged != null) { SelectionChanged(this, new SelectionChangedEventArgs(lastNotifySpan, Selection)); } } lastNotifySpan = Selection; }
public SelectionChangedEventArgs(ViewSpan oldSelection, ViewSpan newSelection) { OldSelection = oldSelection; NewSelection = newSelection; }