Пример #1
0
        protected override void OnLoad(XmlNode node)
        {
            base.OnLoad(node);
            object v;

            if (XmlSerialization.ReadValueFromChildNode(node, "UseDefaultValue", out v))
            {
                _useDefault = (bool)v;
            }
            if (XmlSerialization.ReadValueFromChildNode(node, "DefaultValue", out v))
            {
                _default = v;
            }
            _direction = (FieldDirection)XmlSerialization.GetAttributeEnum(node, "direction", typeof(FieldDirection));
            if (InPort != null)
            {
                if (InPort.Variable != null)
                {
                    InPort.Variable.IsParam = true;
                }
            }
            this.IsParam = true;
        }