예제 #1
0
        private void bttCancel_Click(object sender, EventArgs e)
        {
            this.Close();
            Frm_Login logIn = new Frm_Login();

            logIn.Show();
        }
예제 #2
0
        private void tSmenuBttDangXuat_Click(object sender, EventArgs e)
        {
            DialogResult questionaire = MessageBox.Show("Bạn có muốn đăng xuất ra khỏi chương trình không?", "Thông báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);

            if (questionaire == DialogResult.OK)
            {
                Frm_Login logIn = new Frm_Login();
                this.Hide();
                logIn.Show();
            }
        }
예제 #3
0
        private void bttSearch_Click(object sender, EventArgs e)
        {
            if (String.Compare(txtSearch.Text, "admin") == 0)
            {
                DialogResult notice;
                notice = MessageBox.Show("Your password is admin.");

                if (DialogResult.OK == notice)
                {
                    this.Hide();
                    Frm_Login logIn = new Frm_Login();
                    logIn.Show();
                }
            }
            else
            {
                MessageBox.Show("Your search did not return any results. Please try again with other information.");
            }
        }