示例#1
0
            public InputConnectorItem(AnimNodeItem node)
            {
                this.Node   = node;
                this.Height = 20;
                _LblHeader  = new Label();
                this.Controls.Add(_LblHeader);

                _Connector = new UI.Connector(UI.ConnectorType.Input)
                {
                    VerticalAlignment   = Framework.UI.VerticalAlignment.Center,
                    HorizontalAlignment = Framework.UI.HorizontalAlignment.Right,
                    Width            = 20,
                    Height           = 12,
                    Margin           = new Thickness(0, 0, -20, 0),
                    UserData         = this.Node,
                    SingleConnection = true
                };
                this.Controls.Add(_Connector);

                _RefreshSyles = true;
            }
示例#2
0
 private void CreateOutputConnector()
 {
     if (_OutputConnector != null)
     {
         return;
     }
     _OutputConnector = new UI.Connector(UI.ConnectorType.Output)
     {
         Row                 = 1,
         Column              = 0,
         VerticalAlignment   = Framework.UI.VerticalAlignment.Center,
         HorizontalAlignment = Framework.UI.HorizontalAlignment.Left,
         Width               = 20,
         Height              = 12,
         Margin              = new Thickness(-20, 0, 0, 0),
         UserData            = this,
         SingleConnection    = true,
         Name                = "Connection"
     };
     this.Controls.Add(_OutputConnector);
 }