示例#1
0
 internal void Relocate(DiagramElement element)
 {
     if (relocating) return;
     relocating = true;
     EditorHandler.Relocate(element);
     relocating = false;
 }
示例#2
0
 internal override void Init(DiagramElement element)
 {
     editor.shape = (DelegateShape)element;
     editor.txtNewParameter.Text = newValueText;
     editor.noNewValue = true;
     editor.RefreshValues();
 }
 internal override void Relocate(DiagramElement element)
 {
     var shape = (TypeShape)element;
     Diagram diagram = shape.Diagram;
     if (diagram != null)
     {
         Point absolute = new Point(shape.Left, shape.Top);
         Size relative = new Size(
             (int)(absolute.X * diagram.Zoom) - diagram.Offset.X,
             (int)(absolute.Y * diagram.Zoom) - diagram.Offset.Y - 40);
         Window.Location = Window.ParentLocation + relative;
     }
 }
示例#4
0
            internal override void Relocate(DiagramElement element)
            {
                var shape = (CompositeTypeShape)element;
                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 -= (Window.Height - (int)(record.Height * diagram.Zoom)) / 2;

                    Window.Location = Window.ParentLocation + relative;
                }
            }
示例#5
0
 internal override void Relocate(DiagramElement element)
 {
     editor.Relocate((CommentShape)element);
 }
示例#6
0
 internal override void Init(DiagramElement element)
 {
     editor.Init((CommentShape)element);
 }
示例#7
0
 internal void Init(DiagramElement element)
 {
     EditorHandler.Init(element);
 }
		internal sealed override void Relocate(DiagramElement element)
		{
			Relocate((TypeShape) element);
		}
 internal override void Init(DiagramElement element)
 {
     editor.shape = (CompositeTypeShape)element;
     editor.RefreshToolAvailability();
     editor.RefreshValues();
 }
示例#10
0
 internal override void Relocate(DiagramElement element)
 {
     Relocate((EnumShape)element);
 }
示例#11
0
 internal override void Init(DiagramElement element)
 {
     shape = (EnumShape)element;
     base.Init(element);
 }
示例#12
0
 internal abstract void Relocate(DiagramElement element);
示例#13
0
 internal abstract void Init(DiagramElement element);
示例#14
0
 internal override void Init(DiagramElement element)
 {
     RefreshValues();
 }
示例#15
0
 internal abstract override void Relocate(DiagramElement element);