Exemplo n.º 1
0
 public LoaiPhong(LoaiPhong LoaiPH)
 {
     this.ma_LoaiPhong  = LoaiPH.ma_LoaiPhong;
     this.ten_LoaiPhong = LoaiPH.ten_LoaiPhong;
     this.soNguoi       = LoaiPH.soNguoi;
     this.giaTien       = LoaiPH.giaTien;
 }
Exemplo n.º 2
0
        private void cbbLoaiPhong_SelectedIndexChanged(object sender, EventArgs e)
        {
            string   maLoaiPhong;
            ComboBox cb = sender as ComboBox;

            if (cb.SelectedItem == null)
            {
                return;
            }
            LoaiPhong loaiPhong = cb.SelectedItem as LoaiPhong;

            maLoaiPhong = loaiPhong.MA;
            LoadTenPhongTheoLoaiPhong(maLoaiPhong);
        }
Exemplo n.º 3
0
 public Phong(string soPhong, LoaiPhong LoaiPhong, ThietBi ThietBi1, ThietBi ThietBi2, ThietBi ThietBi3)
 {
     this.soPhong   = soPhong;
     this.LoaiPhong = LoaiPhong;
     this.ThietBi   = new ThietBi[] { ThietBi1, ThietBi2, ThietBi3 };
 }