Exemplo n.º 1
0
        private void btnBaggageLoad_Click(object sender, EventArgs e)
        {
            string lostBaggagesName = "";
            bool   flag             = false;

            for (int i = 0; i < Airline.passengerList[HandlingSystem.index].Baggages.Count; i++)
            {
                if (Airline.passengerList[HandlingSystem.index].Baggages[i].Owner == "")
                {
                    lostBaggagesName += Airline.passengerList[HandlingSystem.index].Baggages[i].BaggageID + ",";
                    flag              = true;
                }
            }
            if (flag)
            {
                MessageBox.Show(lostBaggagesName + " is/are lost!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                HandlingSystem.LostPropertyEnabled = true;
                HandlingSystem.LostPropertyWay     = 10;
            }
            else
            {
                MessageBox.Show("Baggage loading is complete." + " The plane is ready to take off.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            Load_Timer.Start();
        }
Exemplo n.º 2
0
 private void Load_Timer_Tick(object sender, EventArgs e)
 {
     time++;
     if (time == 2)
     {
         Load_Timer.Stop();
         HandlingSystem.handlingSystem.Show();
         this.Hide();
         return;
     }
 }
 private void FadeIn_Timer_Tick(object sender, EventArgs e)
 {
     if (this.Opacity < 1.0)
     {
         this.Opacity += 0.025;
     }
     else
     {
         FadeIn_Timer.Stop();
         Load_Timer.Start();
     }
 }
 private void Load_Timer_Tick(object sender, EventArgs e)
 {
     Load_Timer.Stop();
     FadeOut_Timer.Start();
 }