public Utulisateur Creation_user(Utulisateur newuser, string user, string pass) { newuser = new Utulisateur(user, pass); newuser.Setlistusers(newuser); return(newuser); }
public void Chargerlesinfos(Utulisateur user) { string smt = "SELECT nom,password FROM dbo.Utilisateur "; cmd = new SqlCommand(smt, conn); SqlDataReader rs = cmd.ExecuteReader(); while (rs.Read()) { Utulisateur u = new Utulisateur(rs.GetString(0), rs.GetString(0)); user.Setlistusers(u); } rs.Close(); }