Exemplo n.º 1
0
        private void TextBuffer_ChangedLowPriority(object sender, TextContentChangedEventArgs e)
        {
            var changedSpans = e.Changes.Select(c => c.OldSpan);

            foreach (var span in changedSpans)
            {
                HistoryHelper.AddItemToHistory(_control.CodeDocumentViewModel, span);
            }
        }
Exemplo n.º 2
0
 public void ClickItem(object startLinePosition)
 {
     HistoryHelper.AddItemToHistory(this);
     System.Windows.Threading.Dispatcher.CurrentDispatcher.VerifyAccess();
     Control.SelectLine(startLinePosition);
 }