コード例 #1
0
        private void go_back_Click(object sender, EventArgs e)
        {
            this.Hide();
            adminwork admin = new adminwork();

            admin.Show();
        }
コード例 #2
0
        private void btnlogin_Click_1(object sender, EventArgs e)
        {
            if ((txtusername.Text == "Admin" || txtusername.Text == "Abdo") && txtpassword.Text == "12345")
            {
                this.Hide();
                adminwork admin = new adminwork();
                admin.Show();
            }

            else
            {
                MessageBox.Show("Invalid Password");
            }
        }