private void btn_Back_Click(object sender, EventArgs e) { DonateMask donate = new DonateMask(); donate.Show(); this.Close(); }
//button login private void btn_Login_Click(object sender, EventArgs e) { if (tb_Login_Username.Text != "" && tb_Login_Password.Text != "") { if (ValidateUser(tb_Login_Username.Text, tb_Login_Password.Text)) { if (CheckDonate(tb_Login_Username.Text)) { DonateMask donate = new DonateMask(); donate.Show(); this.Close(); } else if (!CheckDonate(tb_Login_Username.Text)) { if (CheckReceive(tb_Login_Username.Text)) { ReceiveMask receive = new ReceiveMask(); receive.Show(); this.Close(); } else if (!CheckReceive(tb_Login_Username.Text)) { MessageBox.Show("Incorrect Login"); } } } else { MessageBox.Show("Login Failed"); } } else { MessageBox.Show("Please fill your information correctly"); } }