/// <summary> /// Rollback this operation (occurs when a user undoes the last edit). /// </summary> internal override void Undo() { base.OnRollback(); // If the offset was an offset point, get rid of reference to this op. m_Offset.OnRollback(this); // Cut the reference from the reference line to this op. And // refs from any terminal lines. if (m_RefLine != null) { m_RefLine.CutOp(this); } if (m_Term1 != null) { m_Term1.CutOp(this); } if (m_Term2 != null) { m_Term2.CutOp(this); } // Rollback the points at the end of the parallel (if they // were created by this operation). Rollback(CreatedStartPoint); Rollback(CreatedEndPoint); // Mark the parallel line as deleted. Rollback(m_ParLine); }
/// <summary> /// Rollback this operation (occurs when a user undoes the last edit). /// </summary> internal override void Undo() { // Delete observed radius. m_Radius.OnRollback(this); // Cut direct refs made by this operation. if (m_Center != null) { m_Center.CutOp(this); } // Rollback the base class (mark the circle for undo). base.Undo(); }
/// <summary> /// Rollback this operation (occurs when a user undoes the last edit). /// </summary> internal override void Undo() { base.OnRollback(); // Delete observations. m_Direction.OnRollback(this); m_Length.OnRollback(this); // Mark sideshot point for deletion Rollback(m_To); // If we created a line, mark it as well Rollback(m_Line); }
/// <summary> /// Rollback this operation (occurs when a user undoes the last edit). /// </summary> internal override void Undo() { base.OnRollback(); // Get rid of the observations. m_Direction.OnRollback(this); m_Distance.OnRollback(this); // Cut direct refs made by this operation. if (m_From != null) { m_From.CutOp(this); } // Undo the intersect point and any connecting lines Rollback(m_To); Rollback(m_DirLine); Rollback(m_DistLine); }