internal void Relocate(DiagramElement element) { if (relocating) return; relocating = true; EditorHandler.Relocate(element); relocating = false; }
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; } }
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; } }
internal override void Relocate(DiagramElement element) { editor.Relocate((CommentShape)element); }
internal override void Init(DiagramElement element) { editor.Init((CommentShape)element); }
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(); }
internal override void Relocate(DiagramElement element) { Relocate((EnumShape)element); }
internal override void Init(DiagramElement element) { shape = (EnumShape)element; base.Init(element); }
internal abstract void Relocate(DiagramElement element);
internal abstract void Init(DiagramElement element);
internal override void Init(DiagramElement element) { RefreshValues(); }
internal abstract override void Relocate(DiagramElement element);