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