コード例 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     txtOops.Visible = true;
     this.Hide();
     View.MainMenu mainMenu = new View.MainMenu();
     mainMenu.Show();
 }
コード例 #2
0
        private void ProcessLogin()
        {
            var loginUsername = txtUsername.Text;
            var loginPassword = txtPassword.Text;

            if (system.Login(loginUsername, loginPassword))
            {
                this.Hide();
                View.MainMenu mainMenu = new View.MainMenu();
                mainMenu.Show();
            }
            else
            {
                txtPassword.Text = "";
                txtPassword.Focus();
                txtOops.Visible = true;
            }
        }