Beispiel #1
0
 private static void OpenSTARs(XElement CurrentSection)
 {
     foreach (XElement element in CurrentSection.Elements())
     {
         STAR item = new STAR {
             Name = element.Attribute("Name").Value.ToString()
         };
         MySector.STARs.Add(item);
         if (element.Element("Fixes").HasElements)
         {
             OpenFixesForSTAR(element.Element("Fixes"));
         }
     }
 }
Beispiel #2
0
 private static void OpenSTARsForRunway(XElement CurrentSection)
 {
     foreach (XElement element in CurrentSection.Elements())
     {
         STAR item = new STAR {
             Name             = element.Attribute("Name").Value.ToString(),
             ReciprocalRunway = bool.Parse(element.Attribute("ReciprocalRunway").Value.ToString())
         };
         MySector.Airports[MySector.Airports.Count - 1].Runways[MySector.Airports[MySector.Airports.Count - 1].Runways.Count - 1].STARs.Add(item);
         if (element.Element("Fixes").HasElements)
         {
             OpenFixesForSTARForRunway(element.Element("Fixes"));
         }
     }
 }