예제 #1
0
 private void buttonSearch_Click(object sender, EventArgs e)
 {
     WindowResultSearch win2 = new WindowResultSearch(this, textBoxSearch.Text, cB_JourDebut.Text, cB_JourFin.Text,cB_CRJours.Checked,cB_DescrAct.Checked,cB_Acts.Checked);
     win2.Show();
     this.Hide();
 }
예제 #2
0
 private void buttonSearch_Click_1(object sender, EventArgs e)
 {
     string jourDebut = cB_JourDebut.SelectedItem.ToString();
     string jourFin = cB_JourFin.SelectedItem.ToString();
     WindowResultSearch win = new WindowResultSearch(this, textBoxSearch.Text, jourDebut, jourFin, cB_CRJours.Checked, cB_DescrAct.Checked, cB_Acts.Checked);
     win.Show();
     this.Hide();
 }
예제 #3
0
        // Depuis la recherche
        public WindowLevel3(Activite activite, Journee jour, WindowResultSearch win2)
            : this()
        {
            // Changement du bouton "Revenir à la journée"
            buttonRetourJournee.Visible = false;
            b_retourSearch.Visible = true;

            maFenetrePrec2 = win2;
            monActivite = activite;
            maJournee = jour;
            if (maJournee.monNumero < maFenetrePrec2.maFenetrePrec.maMission.monJourJ) {
                DisableControls(this);
                EnableControls(buttonRetourJournee);
            }
            this.Text = maFenetrePrec2.maFenetrePrec.maMission.monNomMission + " - Activité du jour " + maJournee.monNumero.ToString("D3");
            labelNumeroJour.Text = maJournee.monNumero.ToString("D3");
            affichage_treeView();
            tB_descrAct.Text = monActivite.maDescription;
            cb_HDebAct.Text = monActivite.monHeureDebut.ToString();
            cb_MDebAct.Text = monActivite.mesMinutesDebut.ToString();
            cb_HFinAct.Text = monActivite.monHeureFin.ToString();
            cb_MFinAct.Text = monActivite.mesMinutesFin.ToString();
            tB_nomLieu.Text = monActivite.monLieu.monNom.ToString();
            numUpDown_xAct.Text = monActivite.monLieu.maPosX.ToString();
            numUpDown_yAct.Text = monActivite.monLieu.maPosY.ToString();
            cB_localisation.Checked = monActivite.enExterieur;

            cb_HDebAct.Enabled = true;
            cb_MDebAct.Enabled = true;
            cb_HFinAct.Enabled = true;
            cb_MFinAct.Enabled = true;
            tB_descrAct.ReadOnly = true;
            lB_listePart.Enabled = false;
            cB_localisation.Enabled = false;
            tB_nomLieu.ReadOnly = true;
            pictureBoxMap.Enabled = false;
            b_valider.Visible = false;
            b_supprimer.Visible = false;

            foreach (Astronaute a in maFenetrePrec2.maFenetrePrec.maMission.mesAstronautes)
            {
                int indexLB = 0;
                lB_listePart.Items.Add(a.monNom);
                foreach (Astronaute ast in monActivite.mesAstronautes)
                {
                    if (ast.monNom == a.monNom)
                    {
                        lB_listePart.SetSelected(indexLB, true);
                    }
                    indexLB++;
                }
            }
        }