Esempio n. 1
0
 public void Add(pSubplatformType p)// obsolete in 4.1
 {
     //    platforms.Add(p);
 }
Esempio n. 2
0
 public override pSubplatformType pGetSubplatform()
 {
     string kind = "Unknown kind";
     pSubplatformType s;
     try
     {
         reader.Read();
         kind = pGetString();
         s = new pSubplatformType(kind);
         while ("Armament" == reader.Name)
         {
             s.Add(pGetArmament());
         }
         while ("Docked" == reader.Name)
         {
             s.Add(pGetDockedPlatform());
         }
         while ("Launched" == reader.Name)
         {
             s.Add(pGetLaunchedPlatform());
         }
         reader.ReadEndElement();
     }
     catch (System.Exception e)
     {
         throw new ApplicationException("Error reading Subplatform when kind="
             + kind + ": ", e);
     }
     return s;
 }