private void FlightsForm_Load(object sender, EventArgs e)
        {
            name = new Regex("^[a-zA-Z]+[a-zA-z\\s\\-\\,]*$", RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);
            dgv_FlightList.DataSource = a.flightList();
            StreamReader sr = new StreamReader(Path.Combine(Environment.CurrentDirectory, @"airport.txt"));
            AutoCompleteStringCollection Collection = new AutoCompleteStringCollection();

            while (sr.Peek() >= 0)
            {
                Collection.Add(sr.ReadLine());
            }
            sr.Close();
            txtDest.AutoCompleteCustomSource   = Collection;
            txtOrigin.AutoCompleteCustomSource = Collection;
        }
 private void BookingsForm_Load(object sender, EventArgs e)
 {
     dgv_Flight.DataSource = a.flightList();
     dgv_Cust.DataSource   = a.customerList();
     dgv_Book.DataSource   = a.bookingList();
 }