Esempio n. 1
0
        public dynWatch()
        {
            InPortData.Add(new PortData("", "Node to evaluate.", typeof(object)));
            OutPortData.Add(new PortData("", "Watch contents.", typeof(string)));

            NodeUI.RegisterAllPorts();

            //take out the left and right margins
            //and make this so it's not so wide
            NodeUI.inputGrid.Margin = new Thickness(10, 5, 10, 5);
            NodeUI.topControl.Width = 300;

            //set a default height
            //oldPreferredHeight = NodeUI.PreferredHeight;
            NodeUI.Height = 200;

            wt = new WatchTree();
            //wt.TreeExpanded += new EventHandler(wt_TreeExpanded);
            //wt.TreeCollapsed += new EventHandler(wt_TreeCollapsed);

            NodeUI.inputGrid.Children.Add(wt);

            wtb = wt.FindResource("Tree") as WatchTreeBranch;

            foreach (dynPort p in NodeUI.InPorts)
            {
                p.PortDisconnected += new PortConnectedHandler(p_PortDisconnected);
            }
        }
Esempio n. 2
0
        public override void SetupCustomUIElements(dynNodeView nodeUI)
        {
            watchTree = new WatchTree();

            //nodeUI.inputGrid.Children.Add(watchTree);
            nodeUI.grid.Children.Add(watchTree);
            watchTree.SetValue(Grid.RowProperty, 2);
            watchTree.SetValue(Grid.ColumnSpanProperty, 3);
            watchTree.Margin = new Thickness(5, 0, 5, 5);
            watchTreeBranch  = watchTree.FindResource("Tree") as WatchTreeBranch;
        }
Esempio n. 3
0
        public dynWatch()
        {
            InPortData.Add(new PortData("", "Node to evaluate.", typeof(object)));
            OutPortData = new PortData("", "Watch contents, passed through", typeof(object));
            base.RegisterInputsAndOutputs();

            //take out the left and right margins
            //and make this so it's not so wide
            this.inputGrid.Margin = new Thickness(10, 5, 10, 5);
            this.topControl.Width = 300;
            this.topControl.Height = 200;

            wt = new WatchTree();
            this.inputGrid.Children.Add(wt);
            wtb = wt.FindResource("Tree") as WatchTreeBranch;

            foreach (dynPort p in this.InPorts)
            {
                p.PortDisconnected += new PortConnectedHandler(p_PortDisconnected);
            }
        }
Esempio n. 4
0
        public override void SetupCustomUIElements(dynNodeView NodeUI)
        {
            watchTree = new WatchTree();

            NodeUI.inputGrid.Children.Add(watchTree);

            watchTreeBranch = watchTree.FindResource("Tree") as WatchTreeBranch;
        }
Esempio n. 5
0
        public override void SetupCustomUIElements(dynNodeView nodeUI)
        {
            watchTree = new WatchTree();

            //nodeUI.inputGrid.Children.Add(watchTree);
            nodeUI.grid.Children.Add(watchTree);
            watchTree.SetValue(Grid.RowProperty,2);
            watchTree.SetValue(Grid.ColumnSpanProperty,3);
            watchTree.Margin = new Thickness(5,0,5,5);
            watchTreeBranch = watchTree.FindResource("Tree") as WatchTreeBranch;
        }