Esempio n. 1
0
        public ActiveNodePicture(IUINodeControl control, Control parent, bool isBreakpoint = false) : base()
        {
            this.UINode       = control;
            this.IsBreakpoint = isBreakpoint;
            this.Name         = (control as IIdentity).Id.ToString();

            SetScreenPosition(control.GetScreenPosition());
            this.Image = this.IsBreakpoint
                ? global::DesktopClient.Properties.Resources.breakpoint
                : global::DesktopClient.Properties.Resources.ActiveNode;
            parent.Invoke(addImageToParent, parent, this);
        }
Esempio n. 2
0
        private void Debug_NodeClick(IUINodeControl node)
        {
            var payloads = node.GetPayloads();

            this.rawRenderer.Panel2.Controls.Clear();
            if (null == this.debuggerVisualizer)
            {
                this.debuggerVisualizer = new ObjectViewer();
            }
            this.debuggerVisualizer.BindTo(payloads, node.Name);
            this.rawRenderer.Panel2.Controls.Add(this.debuggerVisualizer);
        }
Esempio n. 3
0
        public void AddRemoveBreakPoint(IUINodeControl ctrl)
        {
            var breakPoint = this._breakPoints.FirstOrDefault(b => b.UINode == ctrl);

            if (null != breakPoint)
            {
                breakPoint.Dispose();
                this._breakPoints.Remove(breakPoint);
            }
            else
            {
                breakPoint = new ActiveNodePicture(ctrl, this.parent, true);
                this._breakPoints.Add(breakPoint);
            }
        }
Esempio n. 4
0
        private void designRender(IUINodeControl renderer, Rectangle clickArea)
        {
            selectedNode.Visible = false;
            this.rawRenderer.Panel2.Controls.Clear();
            var designControl = renderer.GetDesignEditor();

            ((DesignEditor)designControl).Close += (s, evt) => selectedNode.Visible = false;
            designControl.Dock = DockStyle.Fill;
            this.rawRenderer.Panel2.Controls.Add(designControl);
            designControl.Visible  = true;
            selectedNode.Location  = new Point(clickArea.X - 10, clickArea.Y - 10);
            selectedNode.BackColor = Color.Transparent;
            selectedNode.BringToFront();
            selectedNode.Visible = true;
        }
Esempio n. 5
0
 public ModelTreeNode(string txt, IUINodeControl ctrl) : base(txt)
 {
     this.nodeControl = ctrl;
 }