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); } }
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; } }
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); } }