Beispiel #1
0
        private void picProfilePic_Click(object sender, EventArgs e)
        {
            Home next = new Home();

            next.name(txtName.Text);
            next.logName(button1.Text);
            next.Show();
            this.Hide();
        }
Beispiel #2
0
        private void bttnSubmit_Click(object sender, EventArgs e)
        {
            Functionality.ValidateLogin valid = new Functionality.ValidateLogin();
            string User        = txtbxUser.Text;
            string Password    = txtbxPWD.Text;
            int    permissions = valid.Validation(User, Password);

            if (permissions > 0)
            {
                //  Validate Valid = new Validate();//testing Database
                //Home next = new Home();
                Home next = new Home();
                next.Show();
                next.name(User);
                next.logName("logout");
                //  Valid.ConnectDB(User, Password);//testing Database
                this.Hide();
            }
            else
            {
                txtError.Visible = true;
            }
        }