public WindowNewMission(WindowLevel0 win) { InitializeComponent(); maFenetrePrec = win; lB_ListeAstroNvMission.DataSource = maListeAstronautes; }
public WindowLevel1(Mission miss, WindowLevel0 winzero) { InitializeComponent(); maFenetrePrec = winzero; maMission = miss; this.Text = maMission.monNomMission; DateTime now = DateTime.Now; TimeSpan diff = now - maMission.maDateDebut; Double totalMin = diff.TotalMinutes; int nbJours = (int)(totalMin / 1480); double minRestantes = (totalMin - (nbJours * 1480)); int hActuelle = (int)(minRestantes / 60); int minActuelle = (int)(minRestantes - (hActuelle * 60)); labelJour.Text = nbJours.ToString(); labelHeures.Text = hActuelle.ToString(); labelMinutes.Text = minActuelle.ToString(); maMission.monJourJ = nbJours; maJournneeCourante = nbJours; //Zone de recherche cB_Acts.Checked = true; cB_CRJours.Checked = true; cB_DescrAct.Checked = true; for (int i = 0; i <= _mission.maDureeMission+1; i++) { cB_JourDebut.Items.Add(i); cB_JourFin.Items.Add(i); } cB_JourDebut.SelectedIndex = 1; cB_JourFin.SelectedIndex = maMission.maDureeMission-1; MesBoutons=genererBoutonsJours(); monNumeroPage = 0; affichageBoutons("right"); }