private void restoreSegments(ArrowSegmentsState state) { points = state.controlPoints.Clone(); segmentCount = state.segmentCount; cascadeStartHorizontal = state.cascadeStartHorizontal; }
private ArrowSegmentsState saveSegments() { ArrowSegmentsState state = new ArrowSegmentsState(); state.controlPoints = points.Clone(); state.segmentCount = segmentCount; state.cascadeStartHorizontal = cascadeStartHorizontal; return state; }