예제 #1
0
 public override string ToString()
 {
     //Retourne en String tous les champs
     return
         (" IdReservationRoom: " + IdRoomReservation.ToString() +
          " IdReservation: " + IdReservation.ToString() +
          " IdRoom: " + IdRoom.ToString() +
          " PriceIncreased" + PriceIncreased.ToString());
 }
예제 #2
0
 public override string ToString()
 {
     //Renvoie en String tous les champs
     return
         (" IdRoom: " + IdRoom.ToString() +
          " Number: " + Number.ToString() +
          " Description: " + Description +
          " Type: " + Type.ToString() +
          " Price: " + Price.ToString() +
          " HasTV: " + HasTV.ToString() +
          " HasHairDryer: " + HasHairDryer.ToString() +
          " IdHotel: " + IdHotel);
 }
예제 #3
0
 private void frmChitietdatphong_Load(object sender, EventArgs e)
 {
     cbTenloaiphong.DataSource    = roomTypes;
     cbTenloaiphong.DisplayMember = "NameRoomType";
     txtMadatphong.Text           = IdRoom.ToString();
     dtpNgaynhan.Value            = DateIn;
     dtpNgaytra.Value             = DateOut;
     DateDefault();
     cbGioitinh.DataSource  = gioiTinh;
     cbQuoctich.DataSource  = Quoctich;
     cbLoaiKH.DataSource    = ListcustomerTypes;
     cbLoaiKH.DisplayMember = "Name_";
     LoadCustomer();
 }