Exemplo n.º 1
0
        private void ToolStripButton_AddPassenger_Click(object sender, EventArgs e)
        {
            var apd = new AddPassengerDialog();

            if (apd.ShowDialog() == DialogResult.OK)
            {
                PrintBoardingPasses(apd.IssuedBoardingPasses);
                LoadFormData();
            }
        }
Exemplo n.º 2
0
 private void EditPassengerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listView_Passengers.SelectedItems.Count > 0)
     {
         var apd = new AddPassengerDialog((int)listView_Passengers.SelectedItems[0].Tag);
         if (apd.ShowDialog() == DialogResult.OK)
         {
             PrintBoardingPasses(apd.IssuedBoardingPasses);
             LoadFormData();
         }
     }
 }