public void Form2Model() { point.Numero = txtNumero.Text; point.coordonnee = txtCoord.Text; point.Description = txtDescrip.Text; point.Etat = cbEtat.Text; point.ligne = LigneDao.findByNumero(cbLigne.Text); }
public void Form2Model() { affecter.Numero = txtNumero.Text; affecter.DateDebut = cbDateD.Value; affecter.DateFin = cbDateF.Value; affecter.bus = BusDao.findByNumero(cbBus.Text); affecter.ligne = LigneDao.findByNumero(cbLigne.Text); }
private void dgLigne_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { for (int i = 0; i < dgLigne.RowCount; i++) { if ((bool)dgLigne.Rows[i].Selected) { AddLigneForm alf = new AddLigneForm(); Ligne ligne = LigneDao.findByNumero(dgLigne.Rows[i].Cells[0].Value.ToString()); alf.Model2Form(ligne); alf.ShowDialog(); } } }
private void btnChance_Click(object sender, EventArgs e) { if (DroitDao.findDroit(administrateur.Numero, "Ligne", "Modifier")) { for (int i = 0; i < dgLigne.RowCount; i++) { if ((bool)dgLigne.Rows[i].Selected) { AddLigneForm alf = new AddLigneForm(); Ligne ligne = LigneDao.findByNumero(dgLigne.Rows[i].Cells[0].Value.ToString()); alf.Model2Form(ligne); alf.ShowDialog(); } } } else { MessageBox.Show("Vous n\'avez pas ce droit"); } }