/// <summary> /// Handle this class's property changes for undo and redo /// </summary> /// <param name="e"></param> /// <param name="undo"></param> public override void ChangeValue(GoChangedEventArgs e, bool undo) { switch (e.SubHint) { case 1451: StartAngle = e.GetFloat(undo); break; case 1452: SweepAngle = e.GetFloat(undo); break; case 1453: ResizableStartAngle = (bool)e.GetValue(undo); break; case 1454: ResizableEndAngle = (bool)e.GetValue(undo); break; default: base.ChangeValue(e, undo); break; } }
/// <summary> /// Handle this class's property changes for undo and redo /// </summary> /// <param name="e"></param> /// <param name="undo"></param> public override void ChangeValue(GoChangedEventArgs e, bool undo) { switch (e.SubHint) { case 1481: MinorRadius = e.GetFloat(undo); break; case 1482: Orientation = (Orientation)e.GetValue(undo); break; case 1483: Perspective = (GoPerspective)e.GetValue(undo); break; case 1484: ResizableRadius = (bool)e.GetValue(undo); break; default: base.ChangeValue(e, undo); ResetPath(); break; } }
/// <summary> /// Perform the usual undo and redo changes. /// </summary> /// <param name="e"></param> /// <param name="undo"></param> public override void ChangeValue(GoChangedEventArgs e, bool undo) { switch (e.SubHint) { case 2310: Anchor = (GoObject)e.GetValue(undo); break; case 2311: Corner = e.GetSize(undo); break; case 2312: BaseWidth = e.GetFloat(undo); break; case 2313: UnanchoredOffset = e.GetSize(undo); break; case 2314: Reanchorable = (bool)e.GetValue(undo); break; default: base.ChangeValue(e, undo); break; } }
/// <summary> /// Handle this class's property changes for undo and redo /// </summary> /// <param name="e"></param> /// <param name="undo"></param> public override void ChangeValue(GoChangedEventArgs e, bool undo) { switch (e.SubHint) { case 3001: { int newInt = e.NewInt; GoObject goObject2 = (GoObject)e.GetValue(undo); if (!undo) { myLeftPorts.Insert(newInt, goObject2); Add(goObject2); } break; } case 3002: { int newInt2 = e.NewInt; GoObject goObject4 = (GoObject)e.GetValue(undo); if (!undo) { myRightPorts.Insert(newInt2, goObject4); Add(goObject4); } break; } case 3003: { int oldInt2 = e.OldInt; GoObject goObject = (GoObject)e.GetValue(undo); if (undo) { myLeftPorts.Insert(oldInt2, goObject); Add(goObject); } break; } case 3004: { int oldInt3 = e.OldInt; GoObject goObject3 = (GoObject)e.GetValue(undo); if (undo) { myRightPorts.Insert(oldInt3, goObject3); Add(goObject3); } break; } case 3005: { int oldInt = e.OldInt; if (oldInt < 0) { oldInt = checked (-oldInt - 1); SetLeftPort(oldInt, (GoObject)e.GetValue(undo)); } else { SetRightPort(oldInt, (GoObject)e.GetValue(undo)); } break; } case 3006: TopPort = (GoObject)e.GetValue(undo); break; case 3007: BottomPort = (GoObject)e.GetValue(undo); break; case 3008: ItemWidth = e.GetFloat(undo); break; case 3009: FromEndSegmentLengthStep = e.GetFloat(undo); break; case 3010: ToEndSegmentLengthStep = e.GetFloat(undo); break; default: base.ChangeValue(e, undo); break; } }