public override void OnReadFromXmlNode(IXmlCodeReader serializer, XmlNode node) { base.OnReadFromXmlNode(serializer, node); object v; if (XmlSerialization.ReadValueFromChildNode(node, "LabelVisible", out v)) { if (v != null) { _labelVisible = (bool)v; } } this.Visible = _labelVisible; }
public override void OnReadFromXmlNode(IXmlCodeReader serializer, XmlNode node) { base.OnReadFromXmlNode(serializer, node); object v; if (XmlSerialization.ReadValueFromChildNode(node, XML_RelativePosition, out v)) { if (_relativePosition == null) { _relativePosition = new RelativePosition(this, 20, 20, true, true); } _relativePosition.Location = (Point)v; XmlNode nd = node.SelectSingleNode(XML_RelativePosition); _relativePosition.IsXto0 = XmlSerialization.GetAttributeBool(nd, "xTo0", true); _relativePosition.IsYto0 = XmlSerialization.GetAttributeBool(nd, "yTo0", true); } }
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; }
protected override void OnLoad(XmlNode node) { _dataType = (RaisDataType)XmlSerialization.ReadFromChildXmlNode(GetReader(), node, "ValueType"); XmlSerialization.ReadValueFromChildNode(node, "Value", out _value); }