Exemplo n.º 1
0
 private void listView1_Click(object sender, EventArgs e)
 {
     lstPhong          = new List <PhongDTO>();
     lstPhong          = PhongBUS.LayMaPhongLoaiPhong();
     txtMaPhong.Text   = lstPhong[int.Parse(lvPhong.SelectedItems[0].SubItems[0].Text)].MaPhong.ToString();
     txtLoaiPhong.Text = lstPhong[int.Parse(lvPhong.SelectedItems[0].SubItems[0].Text)].TenLoaiPhong;
     txtGhiChu.Text    = lstPhong[int.Parse(lvPhong.SelectedItems[0].SubItems[0].Text)].GhiChu;
     txtDonGia.Text    = string.Format("{0:0,0}", lstPhong[int.Parse(lvPhong.SelectedItems[0].SubItems[0].Text)].DonGia);
 }