/// <summary> /// Initializes a new instance of the <see cref="WriteableOperationGroup"/> class. /// </summary> /// <param name="operationList">List of operations belonging to this group.</param> /// <param name="refresh">Optional refresh operation to execute at the end of undo and redo.</param> public WriteableOperationGroup(IWriteableOperationReadOnlyList operationList, IWriteableGenericRefreshOperation refresh) { Debug.Assert(operationList != null); Debug.Assert(operationList.Count > 0); OperationList = operationList; Refresh = refresh; }
/// <summary> /// Creates a IxxxOperationGroup object. /// </summary> private protected override IWriteableOperationGroup CreateOperationGroup(IWriteableOperationReadOnlyList operationList, IWriteableGenericRefreshOperation refresh) { ControllerTools.AssertNoOverride(this, typeof(LayoutController)); return(new LayoutOperationGroup((ILayoutOperationReadOnlyList)operationList, (ILayoutGenericRefreshOperation)refresh)); }