public void Load()
        {
            IEnumerator enumerator  = null;
            IEnumerator enumerator1 = null;

            #region Data Directory Modification

            string str = string.Format("{0}Data/Engine/Altitude.xml", AppDomain.CurrentDomain.BaseDirectory);

            #endregion

            XmlDocument xmlDocument = new XmlDocument();
            try
            {
                xmlDocument.Load(str);
                this.i_AltitudeTable.Clear();
                try
                {
                    enumerator1 = xmlDocument.SelectNodes("Altitudes").GetEnumerator();
                    while (enumerator1.MoveNext())
                    {
                        XmlElement current = (XmlElement)enumerator1.Current;
                        try
                        {
                            enumerator = current.SelectNodes("Altitude").GetEnumerator();
                            while (enumerator.MoveNext())
                            {
                                ClsAltitude clsAltitude = new ClsAltitude((XmlElement)enumerator.Current);
                                this.i_AltitudeTable.Add(clsAltitude.Key, clsAltitude);
                            }
                        }
                        finally
                        {
                            if (enumerator is IDisposable)
                            {
                                ((IDisposable)enumerator).Dispose();
                            }
                        }
                    }
                }
                finally
                {
                    if (enumerator1 is IDisposable)
                    {
                        ((IDisposable)enumerator1).Dispose();
                    }
                }
            }
            catch (Exception exception)
            {
                ProjectData.SetProjectError(exception);
                Interaction.MsgBox(string.Format("XMLFile:{0}", str), MsgBoxStyle.OkOnly, null);
                ProjectData.ClearProjectError();
            }
        }
        public void Load()
        {
            string      filename    = string.Format("{0}Data/System/Altitude.xml", (object)AppDomain.CurrentDomain.BaseDirectory);
            XmlDocument xmlDocument = new XmlDocument();

            try
            {
                xmlDocument.Load(filename);
                this.i_AltitudeTable.Clear();
                try
                {
                    foreach (XmlElement xmlElement in xmlDocument.SelectNodes("Altitudes"))
                    {
                        try
                        {
                            foreach (XmlElement xmlInfo in xmlElement.SelectNodes("Altitude"))
                            {
                                ClsAltitude clsAltitude = new ClsAltitude(xmlInfo);
                                this.i_AltitudeTable.Add((object)clsAltitude.Key, (object)clsAltitude);
                            }
                        }
                        finally
                        {
                            IEnumerator enumerator;
                            if (enumerator is IDisposable)
                            {
                                ((IDisposable)enumerator).Dispose();
                            }
                        }
                    }
                }
                finally
                {
                    IEnumerator enumerator;
                    if (enumerator is IDisposable)
                    {
                        ((IDisposable)enumerator).Dispose();
                    }
                }
            }
            catch (Exception ex)
            {
                ProjectData.SetProjectError(ex);
                int num = (int)Interaction.MsgBox((object)string.Format("XMLFile:{0}", (object)filename), MsgBoxStyle.OKOnly, (object)null);
                ProjectData.ClearProjectError();
            }
        }
        public void Display(ListBox iList)
        {
            IEnumerator enumerator = null;

            iList.Items.Clear();
            try
            {
                enumerator = this.i_AltitudeTable.Values.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    ClsAltitude current = (ClsAltitude)enumerator.Current;
                    iList.Items.Add(current);
                }
            }
            finally
            {
                if (enumerator is IDisposable)
                {
                    ((IDisposable)enumerator).Dispose();
                }
            }
        }
        public ColorPalette GetAltPalette()
        {
            IEnumerator  enumerator = null;
            ColorPalette palette    = (new Bitmap(2, 2, PixelFormat.Format8bppIndexed)).Palette;

            try
            {
                enumerator = this.i_AltitudeTable.Values.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    ClsAltitude current = (ClsAltitude)enumerator.Current;
                    palette.Entries[current.Key] = current.AltitudeColor;
                }
            }
            finally
            {
                if (enumerator is IDisposable)
                {
                    ((IDisposable)enumerator).Dispose();
                }
            }
            return(palette);
        }
 public void SetAltitude(int Index, ClsAltitude Value)
 {
     this.i_AltitudeTable[Index] = Value;
 }
 public void Load()
 {
     string filename = string.Format("{0}Data/System/Altitude.xml", (object) AppDomain.CurrentDomain.BaseDirectory);
       XmlDocument xmlDocument = new XmlDocument();
       try
       {
     xmlDocument.Load(filename);
     this.i_AltitudeTable.Clear();
     try
     {
       foreach (XmlElement xmlElement in xmlDocument.SelectNodes("Altitudes"))
       {
     try
     {
       foreach (XmlElement xmlInfo in xmlElement.SelectNodes("Altitude"))
       {
         ClsAltitude clsAltitude = new ClsAltitude(xmlInfo);
         this.i_AltitudeTable.Add((object) clsAltitude.Key, (object) clsAltitude);
       }
     }
     finally
     {
       IEnumerator enumerator;
       if (enumerator is IDisposable)
         ((IDisposable) enumerator).Dispose();
     }
       }
     }
     finally
     {
       IEnumerator enumerator;
       if (enumerator is IDisposable)
     ((IDisposable) enumerator).Dispose();
     }
       }
       catch (Exception ex)
       {
     ProjectData.SetProjectError(ex);
     int num = (int) Interaction.MsgBox((object) string.Format("XMLFile:{0}", (object) filename), MsgBoxStyle.OKOnly, (object) null);
     ProjectData.ClearProjectError();
       }
 }
 public void set_GetAltitude(int Index, ClsAltitude Value)
 {
     this.i_AltitudeTable[(object) Index] = (object) Value;
 }
 public void Load()
 {
     IEnumerator enumerator = null;
     IEnumerator enumerator1 = null;
     string str = string.Format("{0}Data/System/Altitude.xml", AppDomain.CurrentDomain.BaseDirectory);
     XmlDocument xmlDocument = new XmlDocument();
     try
     {
         xmlDocument.Load(str);
         this.i_AltitudeTable.Clear();
         try
         {
             enumerator1 = xmlDocument.SelectNodes("Altitudes").GetEnumerator();
             while (enumerator1.MoveNext())
             {
                 XmlElement current = (XmlElement)enumerator1.Current;
                 try
                 {
                     enumerator = current.SelectNodes("Altitude").GetEnumerator();
                     while (enumerator.MoveNext())
                     {
                         ClsAltitude clsAltitude = new ClsAltitude((XmlElement)enumerator.Current);
                         this.i_AltitudeTable.Add(clsAltitude.Key, clsAltitude);
                     }
                 }
                 finally
                 {
                     if (enumerator is IDisposable)
                     {
                         ((IDisposable)enumerator).Dispose();
                     }
                 }
             }
         }
         finally
         {
             if (enumerator1 is IDisposable)
             {
                 ((IDisposable)enumerator1).Dispose();
             }
         }
     }
     catch (Exception exception)
     {
         ProjectData.SetProjectError(exception);
         Interaction.MsgBox(string.Format("XMLFile:{0}", str), MsgBoxStyle.OKOnly, null);
         ProjectData.ClearProjectError();
     }
 }
 public void set_GetAltitude(int Index, ClsAltitude Value)
 {
     this.i_AltitudeTable[(object)Index] = (object)Value;
 }