예제 #1
0
        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;
        }
예제 #2
0
 public SelectionChangedEventArgs(ViewSpan oldSelection, ViewSpan newSelection)
 {
     OldSelection = oldSelection;
     NewSelection = newSelection;
 }