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; 
     }
 }
Exemplo n.º 2
0
 public override void LoadFromXML(XElement xml)
 {
     base.LoadFromXML(xml);
     ComponentInstances.LoadFromXML(xml);
     Connections.LoadFromXML(xml);
     PortsDefenitions.LoadFromXML(xml);
     InternalPortsInstances.LoadFromXML(xml, "Internal");
     foreach (PortPainter port in Ports)
     {
         port.IsDelegatePort = false;
     }
     foreach (PortPainter port in InternalPortsInstances)
     {
         port.IsDelegatePort = true;
     }
 }