Example #1
0
        private void btnDangXuat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            this.Close();
            dangnhapquanly ql = new dangnhapquanly();

            ql.Show();
        }
Example #2
0
        void loadthongtin()
        {
            dangnhapquanly dn = new dangnhapquanly();

            if (dangnhapquanly.type == "9")
            {
                Ten.Text    = "Phạm Thạch Sơn Tùng";
                DiaChi.Text = "Phòng trọ";
                Sdt.Text    = "0363064268";
            }
            else
            {
                DataTable mod = qt.thongtinkhachhang(dn.taikhoandangnhap());

                string tenmod = Convert.ToString(mod.Rows[0]["tenqt"].ToString());
                string diachi = Convert.ToString(mod.Rows[0]["diachi"].ToString());
                string sodt   = Convert.ToString(mod.Rows[0]["Sdt"].ToString());
                Ten.Text    = tenmod;
                DiaChi.Text = diachi;
                Sdt.Text    = sodt;
            }
        }