private void vider() { Nom1.Clear(); Prenom1.Clear(); Adr.Clear(); Email.Clear(); tel.Clear(); date.Text = null; comboSexe.Text = null; comboSG.Text = null; }
public Classes() { InitializeComponent(); notes = new SqlDataAdapter("Select * from notes", cn); builder_notes = new SqlCommandBuilder(notes); notes.Fill(ds, "notes"); CNE1.Hide(); Nom1.Hide(); Prenom1.Hide(); Note1.Hide(); button2.Hide(); }
private void button4_Click(object sender, EventArgs e) { button2.Show(); Note.Text = "Note"; CNE.Text = "CNE"; Nom.Text = "Nom"; Prenom.Text = "Prenom"; CNE1.Show(); Nom1.Show(); Prenom1.Show(); Note1.Show(); button2.Text = "Modifier"; Afficher_note(); }
private void button1_Click(object sender, EventArgs e) { button2.Show(); Note.Text = "Note"; CNE.Text = "CNE"; Nom.Text = "Nom"; Prenom.Text = "Prenom"; CNE1.Show(); Nom1.Show(); Prenom1.Show(); Note1.Show(); button2.Text = "Ajouter"; afficher_noteNoInsererted(); }