Ejemplo n.º 1
0
        /// <summary>
        /// This method populates the Choose Flight combo box.
        /// </summary>
        public List <string> CreateChooseFlightList(ref int iListCount)
        {
            try
            {
                List <string> sList = new List <string>();
                DataSet       ds    = new DataSet();

                ds = clsData.RetrieveChooseFlight(ref iListCount);

                for (int i = 0; i < iListCount; i++)
                {
                    sList.Add("Flight: " + ds.Tables[0].Rows[i][1] + " Aircraft: " + ds.Tables[0].Rows[i][2]);
                }

                return(sList);
            }
            catch (Exception ex)
            {
                throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." + MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
            }
        }