Beispiel #1
0
        private void cbxDanhMucPhong_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            string loaiphong = cbxDanhMucPhong.SelectedValue.ToString();

            string kq = nghiep_vu.ThongTin_LoaiPhong(loaiphong);

            XmlDocument lpinfo = new XmlDocument();

            lpinfo.LoadXml(kq);

            XmlElement info = lpinfo.SelectSingleNode("/LOAIPHONG") as XmlElement;

            txtLoaiPhong.Text = info.GetAttribute("TENLOAIPHONG").ToString();
            txtGia.Text       = info.GetAttribute("DONGIA").ToString();
            txtSoLgNg.Text    = info.GetAttribute("SONGUOITOIDA").ToString();
            txtSoLgPg.Text    = info.GetAttribute("SLTRONG").ToString();
        }