Esempio n. 1
0
        private void changeAccount_Click(object sender, EventArgs e)
        {
            DataTable dt2 = db.getusernameandpassword(user_id);

            foreach (DataRow dr in dt2.Rows)
            {
                accounts fm = new accounts(dr[0].ToString(), dr[1].ToString());
                fm.Show();
                this.Hide();
                fm.AddOwnedForm(this);
            }
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (db.verify_user(username.Text, password.Text))
            {
                accounts fm = new accounts(username.Text, password.Text);

                fm.Show();
                this.Hide();
                fm.AddOwnedForm(this);
            }
            else
            {
                label3.Visible = true;
            }
        }
Esempio n. 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (db.verify_user(username.Text, password.Text))
            {
                accounts fm = new accounts(username.Text, password.Text);

                fm.Show();
                this.Hide();
                fm.AddOwnedForm(this);
            }
            else
            {
                label3.Visible = true;

            }
        }
Esempio n. 4
0
        private void changeAccount_Click(object sender, EventArgs e)
        {
            DataTable dt2 = db.getusernameandpassword(user_id);
               foreach (DataRow dr in dt2.Rows)
               {
               accounts fm = new accounts(dr[0].ToString(),dr[1].ToString());
               fm.Show();
               this.Hide();
               fm.AddOwnedForm(this);

               }
        }