예제 #1
0
 void OnEndUndo(object sender, Document.UndoOperationEventArgs e)
 {
     if (e == null)
     {
         return;
     }
     e.Operation.Tag = new TextEditorDataState(this, savedCaretPos, savedSelection);
 }
예제 #2
0
        void DocumentHandleRedone(object sender, Document.UndoOperationEventArgs e)
        {
            TextEditorDataState state = e.Operation.Tag as TextEditorDataState;

            if (state != null)
            {
                state.RedoState();
            }
        }