Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void timerApplication_Tick(object sender, EventArgs e)
- {
- backgroundWorkerAvionSpawn.RunWorkerAsync();
- UpdateAffichage();
- }
- private void UpdateAffichage()
- {
- UpdateAffichageListeAttente();
- }
- /// <summary>
- /// Mets l'affichage de la liste d'attente à jour
- /// </summary>
- private void UpdateAffichageListeAttente()
- {
- listViewAttenteAtterissage.Clear();
- this.listViewAttenteAtterissage.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
- this.columnNoVol,
- this.columnNombrePassager,
- this.columnCarburant});
- PetitAvion[] liste = PierreEliotTrudeau.ListeAttente.ToArray<VehiculeVolant>();
- Array.Sort(liste);
- for (int i = 0; i < liste.Count(); i++)
- {
- ListViewItem item1 = new ListViewItem(new string[] { liste[i].NoVol.ToString(), liste[i].NombrePassagers.ToString(), liste[i].QuantiteFuel.ToString() }, -1);
- listViewAttenteAtterissage.Items.Add(item1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement