Ejemplo n.º 1
0
        private void control_Load()
        {
            KhachSan rs = KhachSan.Single(Code);

            txtAddress.Text     = rs.DiaChi;
            txtCode.Text        = rs.ID.ToString();
            txtName.Text        = rs.TenKS;
            txtPhone.Text       = rs.SoDienThoai;
            txtStartNumber.Text = rs.SoSao.ToString();
        }
Ejemplo n.º 2
0
        private void controls_LoadUp()
        {
            KhachSan ks = KhachSan.Single(Code);

            txtCode.Text        = ks.ID.ToString();
            txtName.Text        = ks.TenKS;
            txtStartNumber.Text = ks.SoSao.ToString();
            txtPhone.Text       = ks.SoDienThoai;
            txtAddress.Text     = ks.DiaChi;
            clbclbright_Load(DiemDL.FindByMaKS(Code));
            clbleft_Load(DiemDL.FindByNotMaKS(Code));
        }