示例#1
0
        public virtual void LoadFromXml(XElement xml)
        {
            Name = XmlUtilits.GetFieldValue(xml, "Name", "ERROR");
            String datatypeStr = XmlUtilits.GetFieldValue(xml, "DataType", "ERROR");

            datatype = (FieldDataType)Enum.Parse(typeof(FieldDataType), datatypeStr);
        }
示例#2
0
        public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);

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

            DatatypeGuid = GuidUtils.GetGuid(dataTypeGuidString, false);
        }
        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);
        }
示例#4
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);
        }
        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);
        }
        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);
        }
示例#8
0
        public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);
            DefaultValues.LoadFromXML(xml);

            String portDefString = XmlUtilits.GetFieldValue(xml, "DefenitionGuid", Guid.Empty.ToString());

            if (!Guid.TryParse(portDefString, out DefenitionGuid))
            {
                DefenitionGuid = Guid.Empty;
            }
        }
 public override void LoadFromXML(XElement xml)
 {
     base.LoadFromXML(xml);
     Ports.LoadFromXML(xml);
     Runnables.LoadFromXML(xml);
     PerInstanceMemoryList.LoadFromXML(xml);
     CDataDefenitions.LoadFromXML(xml);
     String portDefString = XmlUtilits.GetFieldValue(xml, "MultipleInstantiation", "false");
     
     if (!Boolean.TryParse(portDefString, out MultipleInstantiation))
     {
         MultipleInstantiation = 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");
            }
        }
示例#11
0
        public override void LoadFromXML(XElement xml)
        {
            base.LoadFromXML(xml);

            String portDefString = XmlUtilits.GetFieldValue(xml, "PortDefenitionGuid", Guid.Empty.ToString());

            if (!Guid.TryParse(portDefString, out PortDefenitionGuid))
            {
                PortDefenitionGuid = Guid.Empty;
            }
            rectanglePainter.LoadFromXML(xml);
            String side = XmlUtilits.GetFieldValue(xml, "ConnectionPortLocation", RectangleSide.Left.ToString());

            ConnectionPortLocation = (RectangleSide)Enum.Parse(typeof(RectangleSide), side, true);
        }
示例#12
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;
            }
        }
示例#13
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();
        }
示例#14
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;
            }
        }
示例#15
0
 public override void LoadFromXML(XElement xml)
 {
     base.LoadFromXML(xml);
     SystemName = XmlUtilits.GetFieldValue(xml, "SystemName", "ERROR");
 }
示例#16
0
 public virtual void LoadFromXML(XElement xml)
 {
     Name = XmlUtilits.GetFieldValue(xml, "Name", "ERROR");
     GUID = GuidUtils.GetGuid(XmlUtilits.GetFieldValue(xml, "GUID", ""), false);
 }