Пример #1
0
 internal override void Init(DiagramElement element)
 {
     shape = (DelegateShape)element;
     txtNewParameter.Text = newValueText;
     noNewValue           = true;
     RefreshValues();
 }
Пример #2
0
        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;
            }
        }
Пример #3
0
 public DeleteDelegateParameter(DelegateShape delegateShape)
 {
     this.delegateShape = delegateShape;
 }
Пример #4
0
 internal override void Init(DiagramElement element)
 {
     shape = (DelegateShape)element;
     base.Init(element);
 }