Exemplo n.º 1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            string inputPin = txtNum1.Text + txtNum2.Text + txtNum3.Text + txtNum4.Text;

            if (pin == inputPin)
            {
                myMainForm.switchTo("MainForm");
                myMainForm.LogedIn();
            }
            else
            {
                MessageBox.Show("PIN is invalid");
                txtNum1.Clear();
                txtNum2.Clear();
                txtNum4.Clear();
                txtNum3.Clear();

                txtNum1.Focus();
            }
        }
Exemplo n.º 2
0
 private void button4_Click(object sender, EventArgs e)
 {
     myMainForm.switchTo("MainForm");
 }