public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);
            IsPointer = xml.Element("IsPointer").Value.Equals(true.ToString());
            String baseGuidString = XmlUtilits.GetFieldValue(xml, "BaseDataTypeGUID", "");

            BaseDataTypeGUID = GuidUtils.GetGuid(baseGuidString, false);
        }
예제 #2
0
        public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);

            String dataTypeGuidString = XmlUtilits.GetFieldValue(xml, "DatatypeGuid", "");

            DatatypeGuid = GuidUtils.GetGuid(dataTypeGuidString, false);
        }
예제 #3
0
        public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);
            MaxValue = xml.Element("MaxValue").Value.Replace(",", ".");
            MinValue = xml.Element("MinValue").Value.Replace(",", ".");
            String baseGuidString = XmlUtilits.GetFieldValue(xml, "BaseDataTypeGUID", "");

            BaseDataTypeGUID = GuidUtils.GetGuid(baseGuidString, false);
        }
        public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);
            RunableInstances.LoadFromXML(xml);
            PerInstanceMemories.LoadFromXML(xml);
            CDataInstances.LoadFromXML(xml);
            String compDefString = XmlUtilits.GetFieldValue(xml, "ComponentDefenitionGuid", Guid.Empty.ToString());

            ComponentDefenitionGuid = GuidUtils.GetGuid(compDefString, false);
        }
예제 #5
0
        public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);

            String interfaceGuidString = XmlUtilits.GetFieldValue(xml, "InterfaceGUID", "");

            InterfaceGUID = GuidUtils.GetGuid(interfaceGuidString, false);
            String portTypeString = XmlUtilits.GetFieldValue(xml, "PortType", "");

            PortType = (PortType)Enum.Parse(typeof(PortType), portTypeString);
        }
예제 #6
0
        public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);
            int order = 0;

            if (int.TryParse(xml.Element("StartupOrder").Value, out order) == true)
            {
                startupOrder = order;
            }

            DefenitionGuid = GuidUtils.GetGuid(XmlUtilits.GetFieldValue(xml, "DefenitionGuid", ""), false);
        }
        public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);

            String dataTypeGuidString = XmlUtilits.GetFieldValue(xml, "DataTypeGUID", "");

            DataTypeGUID = GuidUtils.GetGuid(dataTypeGuidString, false);
            XElement isPointerElem = xml.Element("IsPointer");

            if (isPointerElem != null)
            {
                IsPointer = isPointerElem.Value.Equals("True");
            }
        }
예제 #8
0
        public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);
            String dataTypeGuidString = XmlUtilits.GetFieldValue(xml, "DataTypeGUID", "");

            DataTypeGUID = GuidUtils.GetGuid(dataTypeGuidString, false);

            int    size;
            string arrSizeStr = xml.Element("Size").Value;

            if (int.TryParse(arrSizeStr, out size))
            {
                Size = size;
            }
        }
예제 #9
0
        public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);

            String Component1Str = XmlUtilits.GetFieldValue(xml, "PortPainter1Guid", "");

            PortPainter1Guid = GuidUtils.GetGuid(Component1Str, false);

            String Component2Str = XmlUtilits.GetFieldValue(xml, "PortPainter2Guid", "");

            PortPainter2Guid = GuidUtils.GetGuid(Component2Str, false);

            anchors.LoadFromXML(xml, this);
            RecreateLines();
        }
예제 #10
0
        public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);
            Name = xml.Element("Name").Value;

            String baseGuidString = XmlUtilits.GetFieldValue(xml, "BaseDataTypeGUID", "");

            BaseDataTypeGUID = GuidUtils.GetGuid(baseGuidString, false);

            String dir = xml.Element("Direction").Value;

            switch (dir)
            {
            case "in": Direction = ClientServerOperationDirection.IN; break;

            case "out": Direction = ClientServerOperationDirection.OUT; break;

            case "in-out": Direction = ClientServerOperationDirection.INOUT; break;
            }
        }
예제 #11
0
 public virtual void LoadFromXML(XElement xml)
 {
     Name = XmlUtilits.GetFieldValue(xml, "Name", "ERROR");
     GUID = GuidUtils.GetGuid(XmlUtilits.GetFieldValue(xml, "GUID", ""), false);
 }