Esempio n. 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;
        }
Esempio n. 2
0
 public SelectionChangedEventArgs(ViewSpan oldSelection, ViewSpan newSelection)
 {
     OldSelection = oldSelection;
     NewSelection = newSelection;
 }