示例#1
0
    /// <summary>
    /// State enter event. Initializes state internal variables and prepares view elements.
    /// </summary>
    public override void Enter()
    {
        base.Enter();
        GameManager manager = GameManager.Instance();

        ui = manager.GameUIInstance.MainMenuUIInstance;
        AttachEventHandlers();
        ui.Show();
    }
示例#2
0
        private void loginButton_Click(object sender, EventArgs e)
        {
            if (usernameTextBox.Text =="user" && passwordTextBox.Text=="12345")
            {

                MainMenuUI main = new MainMenuUI();
                //this.Hide();
                main.Show();

            }
            else if (usernameTextBox.Text == "")
            {
                MessageBox.Show("Please input user name");
            }
            else if (passwordTextBox.Text == "")
            {
                MessageBox.Show("Please input password");
            }
            else
            {
                MessageBox.Show("Invalid Credintial");
            }
        }
示例#3
0
 private void closeButton_Click(object sender, EventArgs e)
 {
     this.Visible = false;
     MainMenuUI main = new MainMenuUI();
     main.Show();
 }
示例#4
0
 private void medicineCloseButton_Click(object sender, EventArgs e)
 {
     this.Close();
     MainMenuUI main = new MainMenuUI();
     main.Show();
 }