Exemple #1
0
        private void btn_submit_Click(object sender, EventArgs e)
        {
            Login         lgn = new Login();
            Credential_DB cDB = new Credential_DB();

            cDB.Name     = A;
            cDB.UserName = B;
            if (C == txt_confirmpassword.Text)
            {
                cDB.Password = C;
            }
            if (D == true)
            {
                cDB.UserType = "Owner";
            }
            else if (E == true)
            {
                cDB.UserType = "Staff";
            }
            if (C == txt_confirmpassword.Text)
            {
                cDB.createnewuser(cDB);
                MessageBox.Show("New User Created");
            }
            else
            {
                MessageBox.Show("Re-Enter! Password Does Not Match");
            }
            this.Dispose();
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Credential_DB cDB = new Credential_DB();

            cDB.UserName = txt_UserName.Text;
            if (txt_Password.Text == txt_ConfirmPassword.Text)
            {
                cDB.Password = txt_Password.Text;
            }
            cDB.UserType = cBox_UserType.Text;
            if (txt_Password.Text == txt_ConfirmPassword.Text)
            {
                cDB.createnewuser(cDB);
                MessageBox.Show("New User Created");
            }
            else
            {
                MessageBox.Show("Re-Enter! Password Does Not Match");
            }
        }