Ejemplo n.º 1
0
        public override Color GetTint()
        {
            Type type = Type.GetType(_aQNameProperty.stringValue);

            if (type == null)
            {
                Error = true;
            }
            else
            {
                var ctors = type.GetConstructors();
                if (ctors.Length > 0)
                {
                    var defaultCtor = ctors[0];
                    var args        = defaultCtor.GetParameters();
                    foreach (var ctorArg in args)
                    {
                        var inputPort = TNode.GetInputPort(_getParameterName(ctorArg.Name));

                        if (!inputPort.IsConnected)
                        {
                            Error = true;
                        }
                    }
                }
            }

            return(base.GetTint());
        }