/// <summary> /// Exchanges update items that were previously generated via /// a call to <see cref="LineSubdivisionUpdateForm.GetUpdateItems"/>. /// </summary> /// <param name="data">The update data to apply to the edit (modified to /// hold the values that were previously defined for the edit)</param> public override void ExchangeData(UpdateItemCollection data) { UpdateItem face = data.GetUpdateItem(DataField.Face); if (face != null) { m_Face.ExchangeData(face); } }
/// <summary> /// Writes updates for an editing operation to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> /// <param name="data">The collection of changes to write</param> public void WriteUpdateItems(EditSerializer editSerializer, UpdateItemCollection data) { // The logic that follows is based on the update items that get defined by GetUpdateItems UpdateItem face = data.GetUpdateItem(DataField.Face); if (face != null) { editSerializer.WritePersistentArray <Distance>(DataField.Face, (Distance[])face.Value); } }
/// <summary> /// Writes updates for an editing operation to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> /// <param name="data">The collection of changes to write</param> public void WriteUpdateItems(EditSerializer editSerializer, UpdateItemCollection data) { // The logic that follows is based on the update items that get defined by GetUpdateItems UpdateItem face = data.GetUpdateItem(DataField.Face); if (face != null) editSerializer.WritePersistentArray<Distance>(DataField.Face, (Distance[])face.Value); }
/// <summary> /// Exchanges update items that were previously generated via /// a call to <see cref="LineSubdivisionUpdateForm.GetUpdateItems"/>. /// </summary> /// <param name="data">The update data to apply to the edit (modified to /// hold the values that were previously defined for the edit)</param> public override void ExchangeData(UpdateItemCollection data) { UpdateItem face = data.GetUpdateItem(DataField.Face); if (face != null) m_Face.ExchangeData(face); }