private void BTN_Nouveau_Click_1(object sender, EventArgs e)
        {
            Form newTrajet = new FEN_ProposerTrajet(modeOuverture.CREATION);

            newTrajet.ShowDialog();
            this.chargerTable();
        }
        private void TABLE_Trajets_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int id = (int)TABLE_Trajets.CurrentRow.Cells[0].Value;

            Form newTrajet = new FEN_ProposerTrajet(modeOuverture.MODIFICATION, id);

            newTrajet.ShowDialog();
        }
        private void Modifier_Click_1(object sender, EventArgs e)
        {
            int id = (int)TABLE_Trajets.CurrentRow.Cells[0].Value;

            Form newTrajet = new FEN_ProposerTrajet(modeOuverture.MODIFICATION, id);

            newTrajet.ShowDialog();
            this.chargerTable();
        }
Esempio n. 4
0
        private void BTN_Modifier_Click(object sender, EventArgs e)
        {
            int id;

            try {
                id = (int)TABLE_VosTrajets.CurrentRow.Cells[0].Value;
            }
            catch (NullReferenceException) { goto Sortir; }

            Form proposerTrajet = new FEN_ProposerTrajet(modeOuverture.MODIFICATION, id);

            proposerTrajet.ShowDialog();
            this.chargerTable();

            Sortir :;
        }
Esempio n. 5
0
        private void BTN_GestionCars_Click(object sender, EventArgs e)
        {
            Form proposer = new FEN_ProposerTrajet();

            proposer.ShowDialog();
        }