internal override void Init(DiagramElement element) { shape = (DelegateShape)element; txtNewParameter.Text = newValueText; noNewValue = true; RefreshValues(); }
internal void Relocate(DelegateShape shape) { Diagram diagram = shape.Diagram; if (diagram != null) { Rectangle record = shape.GetMemberRectangle(shape.ActiveMemberIndex); Point absolute = new Point(shape.Right, record.Top); Size relative = new Size(( int )(absolute.X * diagram.Zoom) - diagram.Offset.X + MarginSize, ( int )(absolute.Y * diagram.Zoom) - diagram.Offset.Y); relative.Height -= (Height - ( int )(record.Height * diagram.Zoom)) / 2; Location = ParentLocation + relative; } }
public DeleteDelegateParameter(DelegateShape delegateShape) { this.delegateShape = delegateShape; }
internal override void Init(DiagramElement element) { shape = (DelegateShape)element; base.Init(element); }