예제 #1
0
 private void btnsignup_Click(object sender, EventArgs e)
 {
     usname = txtuser.Text;
     pass   = txtpass.Text;
     repass = txtrepass.Text;
     if (txtuser.Text != "" && txtpass.Text != "" && txtrepass.Text != "")
     {
         if (btnname == "Forget Password")
         {
             pack.passupdate(usname, pass, repass);
             Login log = new Login();
             this.Close();
             log.Show();
         }
         else
         {
             pack.userinsert(uid, name, usname, pass, repass, dob, gen, mobno, email, address, role);
             Userdata us = new Userdata(usname);
             this.Close();
             us.Show();
         }
     }
     else
     {
         MessageBox.Show("Please Enter all fields");
     }
 }
예제 #2
0
        private void profileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Userdata us = new Userdata(username);

            us.Show();
        }