예제 #1
0
        private void frmMHC_Load(object sender, EventArgs e)
        {
            lblUserName.Text = frmLogin.nhanvien.TenNhanVien;
            Load_Phong();
            frmDatPhong frm = new frmDatPhong();

            sophongtrong     = (from p in db.tbl_phongs where p.TinhTrang == true select p).Count();
            txtSPT.Text      = sophongtrong.ToString();
            sophongDPV       = (from p in db.tbl_phongs where p.TinhTrang == false select p).Count();
            txtPDPV.Text     = sophongDPV.ToString();
            txtSPT.ReadOnly  = true;
            txtPDPV.ReadOnly = true;
        }
예제 #2
0
        private void đặtPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDatPhong frm = new frmDatPhong();

            Load_Frm_MdiChild(frm);
        }