private void btnUser_Click(object sender, EventArgs e) { this.Hide(); if (frmLogin.roles == 1) { frmUser user = new frmUser(); user.Show(); } else { frmInfoUser infoUser = new frmInfoUser(); infoUser.Show(); } }
public static void infoUtilisateur(frmMain fm, Utilisateur user) { frmInfoUser frmInfo = new frmInfoUser(fm, user); frmInfo.Show(); }