示例#1
0
        public override void Initialize(AbstractNode node, EdgeConnectorListener connectorListener)
        {
            base.Initialize(node, connectorListener);

            styleSheets.Add(Resources.Load <StyleSheet>("Styles/ExecNodeView"));
            AddToClassList("execNodeView");

            // Customize placement of the default exec IO ports
            PortView inView  = GetInputPort("_execIn");
            PortView outView = GetOutputPort("_execOut");

            inView.AddToClassList("execInPortView");
            outView.AddToClassList("execOutPortView");
        }
示例#2
0
        protected override void OnInitialize()
        {
            styleSheets.Add(Resources.Load <StyleSheet>("Styles/ExecNodeView"));
            AddToClassList("execNodeView");

            // Customize placement of the default exec IO ports
            PortView inView  = GetInputPort("_execIn");
            PortView outView = GetOutputPort("_execOut");

            if (inView != null)
            {
                inView.AddToClassList("execInPortView");
            }

            if (outView != null)
            {
                outView.AddToClassList("execOutPortView");
            }
        }
        protected override void OnInitialize()
        {
            styleSheets.Add(Resources.Load <StyleSheet>("BlueGraphSamples/ExecutableNodeView"));
            AddToClassList("executableNodeView");

            if (Target is EventNode)
            {
                AddToClassList("eventNodeView");
            }

            // Customize placement of the default exec IO ports
            PortView inView  = GetInputPort("ExecIn");
            PortView outView = GetOutputPort("ExecOut");

            if (inView != null)
            {
                inView.AddToClassList("execInPortView");
            }

            if (outView != null)
            {
                outView.AddToClassList("execOutPortView");
            }
        }