Exemplo n.º 1
0
        private void logout_Click(object sender, EventArgs e)
        {
            myATM.logout();
            Welcome wel = new Welcome();

            wel.Show();
            this.Close();
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            User UO = new User();

            UO.PinCode = textBox1.Text;
            //Authenticate User
            Manager MO     = new Manager();
            Object  Result = MO.Authenticate(UO.PinCode);
            int     value  = Convert.ToInt32(Result);

            if (value > 0)
            {
                Welcome WC = new Welcome();
                this.Hide();
                WC.Show();
            }
            else
            {
                this.Close();
            }
        }
Exemplo n.º 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            Welcome W = new Welcome();

            W.Show();
        }