public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5ab: { this.StartAngle = e.GetFloat(undo); return; } case 0x5ac: { this.SweepAngle = e.GetFloat(undo); return; } case 0x5ad: { this.ResizableStartAngle = (bool)e.GetValue(undo); return; } case 0x5ae: { this.ResizableEndAngle = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5a2: { this.DistanceLeft = e.GetFloat(undo); return; } case 0x5a3: { this.DistanceRight = e.GetFloat(undo); return; } case 0x5a4: { this.DistanceTop = e.GetFloat(undo); return; } case 0x5a5: { this.DistanceBottom = e.GetFloat(undo); return; } case 0x5a6: { this.Orientation = (System.Windows.Forms.Orientation)e.GetValue(undo); return; } case 0x5a7: { this.ReshapeBehavior = (HexagonGraphReshapeBehavior)e.GetValue(undo); return; } case 0x5a8: { this.ReshapableCorner = (bool)e.GetValue(undo); return; } case 0x5a9: { this.KeepsLengthwiseSymmetry = (bool)e.GetValue(undo); return; } case 1450: { this.KeepsCrosswiseSymmetry = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5c9: { this.MinorRadius = e.GetFloat(undo); return; } case 0x5ca: { this.Orientation = (System.Windows.Forms.Orientation)e.GetValue(undo); return; } case 0x5cb: { this.Perspective = (Perspective)e.GetValue(undo); return; } case 0x5cc: { this.ResizableRadius = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); base.ResetPath(); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 2310: { base.Initializing = true; this.Anchor = (DiagramShape)e.GetValue(undo); base.Initializing = false; return; } case 0x907: { base.Initializing = true; this.Corner = e.GetSize(undo); base.Initializing = false; return; } case 0x908: { base.Initializing = true; this.BaseWidth = e.GetFloat(undo); base.Initializing = false; return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { int num1 = e.SubHint; if (num1 != 0x3e9) { switch (num1) { case 0x9c5: { base.Initializing = true; this.Spacing = e.GetFloat(undo); base.Initializing = false; return; } case 0x9c6: { this.Alignment = e.GetInt(undo); return; } case 0x9c7: { base.Initializing = true; object obj1 = e.GetValue(undo); if (!(obj1 is Pen)) { if (obj1 is DiagramGraph.GoPenInfo) { this.LinePen = ((DiagramGraph.GoPenInfo)obj1).GetPen(); } goto Label_00BB; } this.LinePen = (Pen)obj1; goto Label_00BB; } case 0x9c8: { object obj2 = e.GetValue(undo); if (!(obj2 is Pen)) { if (obj2 is DiagramGraph.GoPenInfo) { this.BorderPen = ((DiagramGraph.GoPenInfo)obj2).GetPen(); } return; } this.BorderPen = (Pen)obj2; return; } case 0x9c9: { object obj3 = e.GetValue(undo); if (!(obj3 is System.Drawing.Brush)) { if (obj3 is DiagramGraph.GoBrushInfo) { this.Brush = ((DiagramGraph.GoBrushInfo)obj3).GetBrush(); } return; } this.Brush = (System.Drawing.Brush)obj3; return; } case 0x9ca: { this.Corner = e.GetSize(undo); return; } case 0x9cb: { base.Initializing = true; this.TopLeftMargin = e.GetSize(undo); base.Initializing = false; return; } case 0x9cc: { base.Initializing = true; this.BottomRightMargin = e.GetSize(undo); base.Initializing = false; return; } case 0x9cd: { base.Initializing = true; this.Orientation = (System.Windows.Forms.Orientation)e.GetInt(undo); base.Initializing = false; return; } } base.ChangeValue(e, undo); return; } base.ChangeValue(e, undo); this.ResetPath(); return; Label_00BB: base.Initializing = false; }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0xbb9: { int num1 = e.NewInt; DiagramShape obj1 = (DiagramShape)e.GetValue(undo); if (!undo) { this.myLeftPorts.Insert(num1, obj1); this.Add(obj1); } return; } case 0xbba: { int num2 = e.NewInt; DiagramShape obj2 = (DiagramShape)e.GetValue(undo); if (!undo) { this.myRightPorts.Insert(num2, obj2); this.Add(obj2); } return; } case 0xbbb: { int num3 = e.OldInt; DiagramShape obj3 = (DiagramShape)e.GetValue(undo); if (undo) { this.myLeftPorts.Insert(num3, obj3); this.Add(obj3); } return; } case 0xbbc: { int num4 = e.OldInt; DiagramShape obj4 = (DiagramShape)e.GetValue(undo); if (undo) { this.myRightPorts.Insert(num4, obj4); this.Add(obj4); } return; } case 0xbbd: { int num5 = e.OldInt; if (num5 >= 0) { this.SetRightPort(num5, (DiagramShape)e.GetValue(undo)); return; } num5 = -num5 - 1; this.SetLeftPort(num5, (DiagramShape)e.GetValue(undo)); return; } case 0xbbe: { this.TopPort = (DiagramShape)e.GetValue(undo); return; } case 0xbbf: { this.BottomPort = (DiagramShape)e.GetValue(undo); return; } case 0xbc0: { this.setItemWidth(e.GetFloat(undo), true); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x4b1: { if (!undo) { this.InsertPoint(e.OldInt, new PointF(e.NewRect.X, e.NewRect.Y)); return; } this.RemovePoint(e.OldInt); return; } case 0x4b2: { if (!undo) { this.RemovePoint(e.OldInt); return; } this.InsertPoint(e.OldInt, new PointF(e.OldRect.X, e.OldRect.Y)); return; } case 0x4b3: { if (!undo) { this.SetPoint(e.OldInt, new PointF(e.NewRect.X, e.NewRect.Y)); return; } this.SetPoint(e.OldInt, new PointF(e.OldRect.X, e.OldRect.Y)); return; } case 0x4b4: { PointF[] tfArray1 = (PointF[])e.GetValue(undo); this.SetPoints(tfArray1); return; } case 0x4b5: { this.Style = (StrokeGraphStyle)e.GetValue(undo); return; } case 0x4b6: { this.Curviness = e.GetFloat(undo); return; } case 0x4d4: { object obj1 = e.GetValue(undo); if (!(obj1 is Pen)) { if (obj1 is DiagramGraph.GoPenInfo) { this.HighlightPen = ((DiagramGraph.GoPenInfo)obj1).GetPen(); } return; } this.HighlightPen = (Pen)obj1; return; } case 0x4d5: { this.Highlight = (bool)e.GetValue(undo); return; } case 0x4d6: { this.HighlightWhenSelected = (bool)e.GetValue(undo); return; } case 1250: { this.ToArrow = (bool)e.GetValue(undo); return; } case 0x4e3: { this.ToArrowLength = e.GetFloat(undo); return; } case 0x4e4: { this.ToArrowShaftLength = e.GetFloat(undo); return; } case 0x4e5: { this.ToArrowWidth = e.GetFloat(undo); return; } case 0x4e6: { this.ToArrowFilled = (bool)e.GetValue(undo); return; } case 0x4e7: { this.ToArrowStyle = (StrokeArrowheadStyle)e.GetValue(undo); return; } case 1260: { this.FromArrow = (bool)e.GetValue(undo); return; } case 0x4ed: { this.FromArrowLength = e.GetFloat(undo); return; } case 0x4ee: { this.FromArrowShaftLength = e.GetFloat(undo); return; } case 0x4ef: { this.FromArrowWidth = e.GetFloat(undo); return; } case 0x4f0: { this.FromArrowFilled = (bool)e.GetValue(undo); return; } case 0x4f1: { this.FromArrowStyle = (StrokeArrowheadStyle)e.GetValue(undo); return; } case 0x4f3: { this.HighlightPenWidth = e.GetFloat(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5dd: { this.Text = (string)e.GetValue(undo); return; } case 0x5de: { this.FamilyName = (string)e.GetValue(undo); return; } case 0x5df: { this.FontSize = e.GetFloat(undo); return; } case 0x5e0: { this.Alignment = e.GetInt(undo); return; } case 0x5e1: { this.TextColor = (Color)e.GetValue(undo); return; } case 0x5e2: { this.BackgroundColor = (Color)e.GetValue(undo); return; } case 0x5e3: { this.TransparentBackground = (bool)e.GetValue(undo); return; } case 0x5e4: { this.Bold = (bool)e.GetValue(undo); return; } case 0x5e5: { this.Italic = (bool)e.GetValue(undo); return; } case 1510: { this.Underline = (bool)e.GetValue(undo); return; } case 0x5e7: { this.StrikeThrough = (bool)e.GetValue(undo); return; } case 0x5e8: { this.Multiline = (bool)e.GetValue(undo); return; } case 0x5eb: { this.BackgroundOpaqueWhenSelected = (bool)e.GetValue(undo); return; } case 0x5ec: { this.Clipping = (bool)e.GetValue(undo); return; } case 0x5ee: { this.AutoResizes = (bool)e.GetValue(undo); return; } case 1520: { this.Wrapping = (bool)e.GetValue(undo); return; } case 0x5f1: { this.WrappingWidth = e.GetFloat(undo); return; } case 0x5f2: { this.GdiCharSet = e.GetInt(undo); return; } case 0x5f3: { this.EditorStyle = (TextEditorStyle)e.GetInt(undo); return; } case 0x5f4: { this.Minimum = e.GetInt(undo); return; } case 0x5f5: { this.Maximum = e.GetInt(undo); return; } case 0x5f6: { this.DropDownList = (bool)e.GetValue(undo); return; } case 0x5f7: { this.Choices = (ArrayList)e.GetValue(undo); return; } case 0x5f8: { this.RightToLeft = (bool)e.GetValue(undo); return; } case 1530: { this.Bordered = (bool)e.GetValue(undo); return; } case 0x5fb: { this.StringTrimming = (System.Drawing.StringTrimming)e.GetInt(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0xa8e: { this.Label = (DiagramText)e.GetValue(undo); return; } case 0xa8f: { this.Collapsible = (bool)e.GetValue(undo); return; } case 0xa90: { this.BackgroundColor = (Color)e.GetValue(undo); return; } case 0xa91: { this.Opacity = e.GetFloat(undo); return; } case 0xa92: { this.setLabelSpot(e.GetInt(undo), true); return; } case 0xa93: { this.setTopLeftMargin(e.GetSize(undo), true); return; } case 0xa94: { object obj1 = e.GetValue(undo); if (!(obj1 is Pen)) { if (obj1 is DiagramGraph.GoPenInfo) { this.BorderPen = ((DiagramGraph.GoPenInfo)obj1).GetPen(); } return; } this.BorderPen = (Pen)obj1; return; } case 0xa95: { this.PickableBackground = (bool)e.GetValue(undo); return; } case 2710: { this.Corner = e.GetSize(undo); return; } case 0xa97: { this.Port = (DiagramPort)e.GetValue(undo); return; } case 0xa98: { this.setBottomRightMargin(e.GetSize(undo), true); return; } case 0xa99: { this.setCollapsedTopLeftMargin(e.GetSize(undo), true); return; } case 0xa9a: { this.setCollapsedBottomRightMargin(e.GetSize(undo), true); return; } case 0xa9b: { this.CollapsedCorner = e.GetSize(undo); return; } case 0xa9c: { this.setCollapsedLabelSpot(e.GetInt(undo), true); return; } case 0xa9d: { this.CollapsedObject = (DiagramShape)e.GetValue(undo); return; } case 0xa9e: { SubGraphNodeState state1 = (SubGraphNodeState)e.GetInt(undo); this.State = state1; base.Initializing = (state1 == SubGraphNodeState.Collapsing) || (state1 == SubGraphNodeState.Expanding); if (base.Initializing) { ChangedEventArgs args1 = new ChangedEventArgs(e); args1.SubHint = 0x3e9; base.ChangeValue(args1, undo); } return; } } base.ChangeValue(e, undo); }