/// <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(); }
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"); } }
private void closeButton_Click(object sender, EventArgs e) { this.Visible = false; MainMenuUI main = new MainMenuUI(); main.Show(); }
private void medicineCloseButton_Click(object sender, EventArgs e) { this.Close(); MainMenuUI main = new MainMenuUI(); main.Show(); }