private void btnSave_Click(object sender, EventArgs e) { Form2Model(); ChauffeurDao.save(chauffeur); Vider(); txtNumero.Text = ChauffeurDao.generateKey(); }
private void AddDriverForm_Load(object sender, EventArgs e) { if (chauffeur.Id == 0) { txtNumero.Text = ChauffeurDao.generateKey(); } }