public FrmReq(FrmSignup frm, string strUid, string strGid, string strPass) { InitializeComponent(); _strUid = strUid; _strGid = strGid; _strPass = strPass; _frmSignUp = frm; }
private void btnValidateAnswer_Click(object sender, EventArgs e) { if (strAns1.Equals(txtA1.Text) && strAns2.Equals(txtA2.Text) && strAns3.Equals(txtA3.Text)) { MetroMessageBox.Show(this, "Correct Answers!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Close(); FrmSignup frmSignup = new FrmSignup(); frmSignup.Show(); } else { MetroMessageBox.Show(this, "Wrong Answers", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public FrmReq() { InitializeComponent(); _frmSignUp = null; }