Esempio n. 1
0
 private static void OpenFixesForSTAR(XElement CurrentSection)
 {
     foreach (XElement element in CurrentSection.Elements())
     {
         FIX item = new FIX {
             Latitude  = GetIntFromCoord(element.Attribute("Latitude").Value.ToString()),
             Longitude = GetIntFromCoord(element.Attribute("Longitude").Value.ToString())
         };
         MySector.STARs[MySector.STARs.Count - 1].Fixes.Add(item);
     }
 }
Esempio n. 2
0
 private static void OpenFixes(XElement CurrentSection)
 {
     foreach (XElement element in CurrentSection.Elements())
     {
         FIX item = new FIX {
             Name      = element.Attribute("Name").Value.ToString(),
             Latitude  = GetIntFromCoord(element.Attribute("Latitude").Value.ToString()),
             Longitude = GetIntFromCoord(element.Attribute("Longitude").Value.ToString())
         };
         MySector.Fixes.Add(item);
     }
 }
Esempio n. 3
0
 private static void OpenFixesForSTARForRunway(XElement CurrentSection)
 {
     foreach (XElement element in CurrentSection.Elements())
     {
         FIX item = new FIX {
             Name      = element.Attribute("Name").Value.ToString(),
             Latitude  = GetIntFromCoord(element.Attribute("Latitude").Value.ToString()),
             Longitude = GetIntFromCoord(element.Attribute("Longitude").Value.ToString()),
             Altitude  = int.Parse(element.Attribute("Altitude").Value.ToString()),
             Speed     = int.Parse(element.Attribute("Speed").Value.ToString()),
             FlyOver   = bool.Parse(element.Attribute("FlyOver").Value.ToString())
         };
         MySector.Airports[MySector.Airports.Count - 1].Runways[MySector.Airports[MySector.Airports.Count - 1].Runways.Count - 1].STARs[MySector.Airports[MySector.Airports.Count - 1].Runways[MySector.Airports[MySector.Airports.Count - 1].Runways.Count - 1].STARs.Count - 1].Fixes.Add(item);
     }
 }