Пример #1
0
 private void modifier_Click(object sender, EventArgs e)
 {
     try
     {
         NiveauDAO.Update_client(int.Parse(tbID.Text), tbnom.Text, int.Parse(tbngr.Text));
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     try
     {
         Niveaus clt = NiveauDAO.Get_client_ID(int.Parse(tbID.Text));
         tbnom.Text = clt.nom;
         tbngr.Text = clt.nbre_gr.ToString();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }