Пример #1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     Form2Model();
     ChauffeurDao.save(chauffeur);
     Vider();
     txtNumero.Text = ChauffeurDao.generateKey();
 }
Пример #2
0
 private void AddDriverForm_Load(object sender, EventArgs e)
 {
     if (chauffeur.Id == 0)
     {
         txtNumero.Text = ChauffeurDao.generateKey();
     }
 }