예제 #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");
            }
        }
예제 #2
0
        private void TakeMeHomeCountryRoads_Click(object sender, EventArgs e)
        {
            var Home = new userDashboard();

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

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