Beispiel #1
0
 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();
     }
 }
Beispiel #2
0
        public static void infoUtilisateur(frmMain fm, Utilisateur user)
        {
            frmInfoUser frmInfo = new frmInfoUser(fm, user);

            frmInfo.Show();
        }