Esempio n. 1
0
 /// <summary>
 /// Display customers flight table form
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btn_viewRecord_Click(object sender, RoutedEventArgs e)
 {
     selectedIndex = GetSelectedIndex();
     if (selectedIndex != -1)
     {
         CustomerFlightTable flightRecord = new CustomerFlightTable(customerList[selectedIndex]);
         flightRecord.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("Please Selecte a customer");
     }
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_customerFlightForm_Click(object sender, RoutedEventArgs e)
        {
            CustomerFlightTable cf = new CustomerFlightTable();

            cf.Show();
        }