private void backButton_Click(object sender, EventArgs e)
        {
            MainMenuUI homeUI = new MainMenuUI("0", "0");

            this.Hide();
            homeUI.ShowDialog();
        }
Exemple #2
0
        private void logInButton_Click(object sender, EventArgs e)
        {
            MatchUserAndPassword matchUser = new MatchUserAndPassword();
            bool status = matchUser.PasswordAndUserNameVerification(userNameTextBox.Text, passwordTextBox.Text);

            if (status)
            {
                MainMenuUI mainMenu = new MainMenuUI(userNameTextBox.Text, passwordTextBox.Text);
                this.Hide();
                mainMenu.ShowDialog();
            }
            else
            {
                MessageBox.Show("Please enter the currect username and password", "Error", MessageBoxButtons.OK,
                                MessageBoxIcon.Warning);
            }
        }
        private void logInButton_Click(object sender, EventArgs e)
        {

            MatchUserAndPassword matchUser=new MatchUserAndPassword();
            bool status = matchUser.PasswordAndUserNameVerification(userNameTextBox.Text, passwordTextBox.Text);
            if (status)
            {
                MainMenuUI mainMenu = new MainMenuUI(userNameTextBox.Text, passwordTextBox.Text);
                this.Hide();
                mainMenu.ShowDialog();

            }
            else
            {
                MessageBox.Show("Please enter the currect username and password", "Error", MessageBoxButtons.OK,
                    MessageBoxIcon.Warning);
            }
        }
 private void backButton_Click(object sender, EventArgs e)
 {
     MainMenuUI homeUI = new MainMenuUI("0","0");
     this.Hide();
     homeUI.ShowDialog();
 }