public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0xa5b: { this.setDraggableLabel((bool)e.GetValue(undo), true); return; } case 0xa5c: { this.Icon = (DiagramShape)e.GetValue(undo); return; } case 0xa5d: { this.Label = (DiagramText)e.GetValue(undo); return; } case 0xa5e: { this.Port = (DiagramPort)e.GetValue(undo); return; } case 0xa5f: { this.setLabelOffset(e.GetSize(undo), true); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x641: { this.Image = (System.Drawing.Image)e.GetValue(undo); return; } case 0x642: { this.ResourceManager = (System.Resources.ResourceManager)e.GetValue(undo); return; } case 0x643: { this.Name = (string)e.GetValue(undo); return; } case 0x644: { this.Alignment = e.GetInt(undo); return; } case 0x645: { this.AutoResizes = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5ba: { this.Skew = e.GetSize(undo); return; } case 0x5bb: { this.ReshapableSkew = (bool)e.GetValue(undo); return; } case 0x5bc: { this.Direction = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); base.ResetPath(); }
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 2430: { this.Name = (string)e.GetValue(undo); return; } case 0x97f: { this.Label = (GeneralNodePortLabelText)e.GetValue(undo); return; } case 0x980: { this.SideIndex = e.GetInt(undo); return; } case 0x981: { this.LeftSide = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 2000: { this.UserFlags = e.GetInt(undo); return; } case 0x7d1: { this.UserObject = e.GetValue(undo); return; } case 0x7d2: { this.ToolTipText = (string)e.GetValue(undo); return; } case 0x7d3: { this.PropertiesDelegatedToSelectionObject = (bool)e.GetValue(undo); return; } case 0x7d4: { this.PartID = e.GetInt(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 0x579: { if (!undo) { this.InsertPoint(e.OldInt, new PointF(e.NewRect.X, e.NewRect.Y)); return; } this.RemovePoint(e.OldInt); return; } case 0x57a: { if (!undo) { this.RemovePoint(e.OldInt); return; } this.InsertPoint(e.OldInt, new PointF(e.OldRect.X, e.OldRect.Y)); return; } case 0x57b: { 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 0x584: { PointF[] tfArray1 = (PointF[])e.GetValue(undo); this.SetPoints(tfArray1); return; } case 0x586: { this.Style = (PolygonGraphStyle)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
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) { switch (e.SubHint) { case 0x597: { this.A = e.GetPoint(undo); return; } case 0x598: { this.B = e.GetPoint(undo); return; } case 0x599: { this.C = e.GetPoint(undo); return; } case 0x59a: { PointF[] tfArray1 = (PointF[])e.GetValue(undo); this.myPoints = tfArray1; base.ResetPath(); base.InvalidBounds = true; this.Changed(0x59a, 0, null, DiagramShape.NullRect, 0, null, DiagramShape.NullRect); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0xb55: { this.Background = (DiagramShape)e.GetValue(undo); return; } case 0xb56: { this.Icon = (DiagramShape)e.GetValue(undo); return; } case 0xb57: { this.Label = (DiagramText)e.GetValue(undo); return; } case 0xb58: { base.Initializing = true; this.TopLeftMargin = e.GetSize(undo); base.Initializing = false; return; } case 0xb59: { base.Initializing = true; this.BottomRightMargin = e.GetSize(undo); base.Initializing = false; return; } case 0xb5a: { this.ActionEnabled = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { int num1 = e.SubHint; if (num1 != 0x3e9) { switch (num1) { case 0x44d: { object obj1 = e.GetValue(undo); if (!(obj1 is System.Drawing.Pen)) { if (obj1 is GoPenInfo) { this.Pen = ((GoPenInfo)obj1).GetPen(); } return; } this.Pen = (System.Drawing.Pen)obj1; return; } case 0x44e: { object obj2 = e.GetValue(undo); if (!(obj2 is System.Drawing.Brush)) { if (obj2 is GoBrushInfo) { this.Brush = ((GoBrushInfo)obj2).GetBrush(); } return; } this.Brush = (System.Drawing.Brush)obj2; return; } } base.ChangeValue(e, undo); } else { base.ChangeValue(e, undo); this.ResetPath(); } }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x835: { this.setLabelSpot(e.GetInt(undo), true); return; } case 0x836: { this.Shape = (DiagramGraph)e.GetValue(undo); return; } case 0x837: { this.Label = (DiagramText)e.GetValue(undo); return; } case 0x838: { this.Port = (DiagramPort)e.GetValue(undo); return; } case 0x839: { base.Initializing = true; this.MiddleLabelMargin = e.GetSize(undo); base.Initializing = false; return; } case 0x83a: { this.setAutoResizes((bool)e.GetValue(undo), true); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 1460: { this.A = e.GetPoint(undo); return; } case 0x5b5: { this.B = e.GetPoint(undo); return; } case 0x5b6: { this.C = e.GetPoint(undo); return; } case 0x5b7: { this.D = e.GetPoint(undo); return; } case 0x5b8: { this.SetPoints((PointF[])e.GetValue(undo)); return; } case 0x5b9: { this.Orientation = (System.Windows.Forms.Orientation)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0xa29: { this.Text = (string)e.GetValue(undo); return; } case 0xa2a: { this.Icon = (DiagramShape)e.GetValue(undo); return; } case 0xa2b: { this.Label = (DiagramText)e.GetValue(undo); return; } case 0xa2c: { this.InPort = (DiagramPort)e.GetValue(undo); return; } case 0xa2d: { this.OutPort = (DiagramPort)e.GetValue(undo); return; } case 0xa2e: { this.setOrientation((System.Windows.Forms.Orientation)e.GetInt(undo), true); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { if (e.SubHint == 0x76d) { this.ControlType = (Type)e.GetValue(undo); } else { base.ChangeValue(e, undo); } }
public override void ChangeValue(ChangedEventArgs e, bool undo) { if (e.SubHint == 0x8a3) { this.LinkPointsSpread = (bool)e.GetValue(undo); } else { base.ChangeValue(e, undo); } }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x8fd: { base.Initializing = true; this.TopLeftMargin = e.GetSize(undo); base.Initializing = false; return; } case 0x8fe: { base.Initializing = true; this.BottomRightMargin = e.GetSize(undo); base.Initializing = false; return; } case 0x8ff: { this.PartID = e.GetInt(undo); return; } case 0x900: { this.Background = (DiagramShape)e.GetValue(undo); return; } case 0x901: { this.Label = (DiagramText)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5d3: { this.Depth = e.GetSize(undo); return; } case 0x5d4: { this.Perspective = (Perspective)e.GetValue(undo); return; } case 0x5d5: { this.ReshapableDepth = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0xaf1: { this.Label = (DiagramText)e.GetValue(undo); return; } case 0xaf2: { this.Background = (DiagramShape)e.GetValue(undo); return; } case 0xaf3: { this.TopPort = (DiagramPort)e.GetValue(undo); return; } case 0xaf4: { this.RightPort = (DiagramPort)e.GetValue(undo); return; } case 0xaf5: { this.BottomPort = (DiagramPort)e.GetValue(undo); return; } case 0xaf6: { this.LeftPort = (DiagramPort)e.GetValue(undo); return; } case 0xaf7: { base.Initializing = true; this.TopLeftMargin = e.GetSize(undo); base.Initializing = false; return; } case 0xaf8: { base.Initializing = true; this.BottomRightMargin = e.GetSize(undo); base.Initializing = false; return; } case 0xaf9: { this.setAutoResizes((bool)e.GetValue(undo), true); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0xaf1: this.Label = (DiagramText)e.GetValue(undo); return; case 0xaf2: this.Background = (DiagramShape)e.GetValue(undo); return; case 0xaf7: base.Initializing = true; this.TopLeftMargin = e.GetSize(undo); base.Initializing = false; return; case 0xaf8: base.Initializing = true; this.BottomRightMargin = e.GetSize(undo); base.Initializing = false; return; case 0xaf9: this.setAutoResizes((bool)e.GetValue(undo), true); return; case 0xafa: this.LeftPorts = (DiagramPort[])e.GetValue(undo); return; case 0xafb: this.RightPorts = (DiagramPort[])e.GetValue(undo); return; case 0xafc: this.TopPorts = (DiagramPort[])e.GetValue(undo); return; case 0xafd: this.BottomPorts = (DiagramPort[])e.GetValue(undo); return; default: base.ChangeValue(e, undo); return; } }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5bd: { this.Corner = e.GetSize(undo); return; } case 1470: { this.ReshapableCorner = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x51f: { this.RealLink = (Shapes.LineGraph)e.GetValue(undo); return; } case 0x520: { this.FromLabel = (DiagramShape)e.GetValue(undo); return; } case 0x521: { this.MidLabel = (DiagramShape)e.GetValue(undo); return; } case 0x522: { this.ToLabel = (DiagramShape)e.GetValue(undo); return; } case 0x523: { this.FromLabelCentered = (bool)e.GetValue(undo); return; } case 0x524: { this.MidLabelCentered = (bool)e.GetValue(undo); return; } case 0x525: { this.ToLabelCentered = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x899: { this.Body = (DiagramShape)e.GetValue(undo); return; } case 0x89a: { base.Initializing = true; this.PortBorderMargin = e.GetSize(undo); base.Initializing = false; return; } } base.ChangeValue(e, undo); }
public virtual void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 1000: { return; } case 0x3e9: { this.myBounds = e.GetRect(undo); this.InvalidateViews(); return; } case 0x3eb: { this.Visible = (bool)e.GetValue(undo); return; } case 0x3ec: { this.Selectable = (bool)e.GetValue(undo); return; } case 0x3ed: { this.Movable = (bool)e.GetValue(undo); return; } case 0x3ee: { this.Copyable = (bool)e.GetValue(undo); return; } case 0x3ef: { this.Resizable = (bool)e.GetValue(undo); return; } case 0x3f0: { this.Reshapable = (bool)e.GetValue(undo); return; } case 0x3f1: { this.Deletable = (bool)e.GetValue(undo); return; } case 1010: { this.Editable = (bool)e.GetValue(undo); return; } case 0x3f3: { this.AutoRescales = (bool)e.GetValue(undo); return; } case 0x3f4: { this.ResizesRealtime = (bool)e.GetValue(undo); return; } case 0x3f5: { this.Shadowed = (bool)e.GetValue(undo); return; } case 0x3f6: { DiagramShape obj1 = e.NewValue as DiagramShape; if (!undo) { this.AddObserver(obj1); return; } this.RemoveObserver(obj1); return; } case 0x3f7: { DiagramShape obj2 = e.OldValue as DiagramShape; if (!undo) { this.RemoveObserver(obj2); return; } this.AddObserver(obj2); return; } case 0x3f8: { this.DragsNode = (bool)e.GetValue(undo); return; } case 0x3f9: { this.Printable = (bool)e.GetValue(undo); return; } } throw new ArgumentException("Unknown GoChangedEventArgs subhint--override DiagramShape.ChangeValue to handle the case: " + e.SubHint.ToString(NumberFormatInfo.InvariantInfo)); }
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 0x961: { int num1 = e.OldInt; if (num1 >= 0) { if (undo) { if (num1 < this.RightPortsCount) { this.myRightPorts.RemoveAt(num1); } return; } if (num1 < this.RightPortsCount) { this.myRightPorts.Insert(num1, e.OldValue); return; } this.myRightPorts.Add(e.OldValue); return; } num1 = -num1 - 1; if (!undo) { if (num1 < this.LeftPortsCount) { this.myLeftPorts.Insert(num1, e.OldValue); return; } this.myLeftPorts.Add(e.OldValue); return; } if (num1 < this.LeftPortsCount) { this.myLeftPorts.RemoveAt(num1); } return; } case 0x962: { int num2 = e.OldInt; if (num2 >= 0) { if (undo) { if (num2 < this.RightPortsCount) { this.myRightPorts.Insert(num2, e.OldValue); return; } this.myRightPorts.Add(e.OldValue); return; } if (num2 < this.RightPortsCount) { this.myRightPorts.RemoveAt(num2); } return; } num2 = -num2 - 1; if (!undo) { if (num2 < this.LeftPortsCount) { this.myLeftPorts.RemoveAt(num2); } return; } if (num2 >= this.LeftPortsCount) { this.myLeftPorts.Add(e.OldValue); return; } this.myLeftPorts.Insert(num2, e.OldValue); return; } case 0x963: { int num3 = e.OldInt; if (num3 >= 0) { if (num3 < this.RightPortsCount) { this.myRightPorts[num3] = e.GetValue(undo); } return; } num3 = -num3 - 1; if (num3 < this.LeftPortsCount) { this.myLeftPorts[num3] = e.GetValue(undo); } return; } case 0x964: { this.TopLabel = (DiagramText)e.GetValue(undo); return; } case 0x965: { this.BottomLabel = (DiagramText)e.GetValue(undo); return; } case 0x966: { this.Icon = (DiagramShape)e.GetValue(undo); return; } case 0x967: { this.setOrientation((System.Windows.Forms.Orientation)e.GetInt(undo), true); return; } } base.ChangeValue(e, undo); }
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 1300: { this.UserFlags = e.GetInt(undo); return; } case 0x515: { this.UserObject = e.GetValue(undo); return; } case 0x516: { this.FromPort = (IDiagramPort)e.GetValue(undo); return; } case 0x517: { this.ToPort = (IDiagramPort)e.GetValue(undo); return; } case 0x518: { this.setOrthogonal((bool)e.GetValue(undo), true); return; } case 0x519: { this.Relinkable = (bool)e.GetValue(undo); return; } case 0x51a: { this.AbstractLink = (IDiagramLine)e.GetValue(undo); return; } case 0x51b: { this.setAvoidsNodes((bool)e.GetValue(undo), true); return; } case 0x51d: { this.PartID = e.GetInt(undo); return; } case 1310: { this.AdjustingStyle = (LineAdjustingStyle)e.GetInt(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 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 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 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); }