コード例 #1
0
ファイル: BanHang.cs プロジェクト: yuuna5s/Doan_CNPM
        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult rs = new DialogResult();

            rs = MessageBox.Show("Bạn muốn quay lại màn hình đăng nhập ?", "Thông báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
            if (rs == DialogResult.OK)
            {
                TaiKhoanDTO tk = new TaiKhoanDTO();
                tk.username = str;
                TaiKhoanBUS.Dang_xuat(tk);
                QuanLy ql = new QuanLy();
                this.Hide();
                frmDangnhap dn = new frmDangnhap();
                dn.Show();
            }
            else
            {
                Application.Exit();
            }
        }