예제 #1
0
 private void TransferTimer_Tick(object sender, EventArgs e)
 {
     counter++;
     if (counter == 2)
     {
         TransferTimer.Stop();
         HandlingSystem.LoadWay = 2;
         HandlingSystem.handlingSystem.Show();
         this.Hide();
         return;
     }
 }
예제 #2
0
        private void btnTransfer_Click(object sender, EventArgs e)
        {
            string BaggageTransfer = "";

            for (int i = 0; i < Airline.passengerList[HandlingSystem.index].Baggages.Count; i++)
            {
                if (Airline.passengerList[HandlingSystem.index].Baggages[i].Owner != "")
                {
                    BaggageTransfer += "Baggage number " + Airline.passengerList[HandlingSystem.index].Baggages[i].BaggageID + " is being transferred."
                                       + Environment.NewLine;
                }
            }
            MessageBox.Show(BaggageTransfer, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            TransferTimer.Start();
            HandlingSystem.handlingSystem.btnLoad.Enabled = true;
        }