예제 #1
0
        private void RaiseUndoTransactionCompleted(ITextUndoTransaction transaction, TextUndoTransactionCompletionResult result)
        {
            EventHandler <TextUndoTransactionCompletedEventArgs> undoTransactionAdded = UndoTransactionCompleted;

            if (undoTransactionAdded != null)
            {
                undoTransactionAdded(this, new TextUndoTransactionCompletedEventArgs(transaction, result));
            }
        }
예제 #2
0
        private void RaiseUndoTransactionCompleted(ITextUndoTransaction transaction, TextUndoTransactionCompletionResult result)
        {
            EventHandler <TextUndoTransactionCompletedEventArgs> undoTransactionAdded = UndoTransactionCompleted;

            undoTransactionAdded?.Invoke(this, new TextUndoTransactionCompletedEventArgs(transaction, result));
        }
 /// <summary>
 /// Initializes a new instance of <see cref="TextUndoTransactionCompletedEventArgs"/>.
 /// </summary>
 /// <param name="transaction">The <see cref="ITextUndoTransaction"/>.</param>
 /// <param name="result">The <see cref="TextUndoTransactionCompletionResult"/>.</param>
 /// <exception cref="ArgumentNullException"><paramref name="transaction"/> is null.</exception>
 public TextUndoTransactionCompletedEventArgs(ITextUndoTransaction transaction, TextUndoTransactionCompletionResult result)
 {
     this.transaction = transaction;
     this.result      = result;
 }
예제 #4
0
 private void RaiseUndoTransactionCompleted(ITextUndoTransaction transaction, TextUndoTransactionCompletionResult result) {
     EventHandler<TextUndoTransactionCompletedEventArgs> undoTransactionAdded = UndoTransactionCompleted;
     undoTransactionAdded?.Invoke(this, new TextUndoTransactionCompletedEventArgs(transaction, result));
 }