public static void AddNotes() { Notes N = new Notes(), Nt = new Notes(); Nt = ExamenView.GetNotesEtudiant(N); cmd = new MySqlCommand(" Insert into notes values (@IdEtudiant,@IdModule,@DS,@Examen)", Connexion.Connect()); cmd.Parameters.AddWithValue("@IdEtudiant", Nt.IdEtudiant); cmd.Parameters.AddWithValue("@IdModule", Nt.IdModule); cmd.Parameters.AddWithValue("@DS", Nt.DS); cmd.Parameters.AddWithValue("@Examen", Nt.Examen); cmd.ExecuteNonQuery(); }