Ejemplo n.º 1
0
        private void submit_Click(object sender, EventArgs e)
        {
            string account_number = accountNumberInput.Text;
            string pin            = pinInput.Text;

            int returnValue = userActions.loginUser(account_number, pin);

            if (returnValue == 1)
            {
                Console.WriteLine("WELCOME USER USER");
                var userDashboard = new userDashboard();
                userDashboard.Show();
                this.Hide();
            }
            else if (returnValue == 2)
            {
                Console.WriteLine("welcome amdin");
                var admin = new adminpanel.adminDashboard();
                admin.Show();
                this.Hide();
            }
            else
            {
                Console.WriteLine("Email/password incorrect");
            }
        }
Ejemplo n.º 2
0
        private void TakeMeHomeCountryRoads_Click(object sender, EventArgs e)
        {
            var Home = new userDashboard();

            Home.Show();
            this.Hide();
        }
Ejemplo n.º 3
0
        private void home_Click(object sender, EventArgs e)
        {
            var Home = new userDashboard();

            Home.Show();
            this.Hide();
        }