/// <summary> /// Handler called every time a state is unassigned in the controller. /// </summary> /// <param name="operation">Details of the operation performed.</param> private protected virtual void OnStateUnassigned(IWriteableAssignmentOperation operation) { Debug.Assert(operation != null); IWriteableOptionalNodeState State = operation.State; Debug.Assert(State != null); Debug.Assert(StateViewTable.ContainsKey(State)); }
/// <summary> /// Unassign the optional node. /// </summary> /// <param name="operation">Details of the operation performed.</param> public void Unassign(IWriteableAssignmentOperation operation) { NodeTreeHelperOptional.UnassignChildNode(Owner.Node, PropertyName); operation.Update(ChildState); }