/// <summary> /// Initializes a new instance of the <see cref="StateChangedEventArgs"/> with the reason. /// </summary> /// <param name="reason">The reason.</param> /// <param name="actions">The actions that caused the state change.</param> public StateChangedEventArgs(StateChangedReason reason, List <IUndoRedoAction> actions) { Guard.NotNull(actions, nameof(actions)); Reason = reason; Actions = actions; }
private void OnStateChanged(StateChangedReason reason, List <IUndoRedoAction> actions) { StateChanged?.Invoke(this, new StateChangedEventArgs(reason, actions)); }