public override string ToString() { //Retourne en String tous les champs return (" IdReservationRoom: " + IdRoomReservation.ToString() + " IdReservation: " + IdReservation.ToString() + " IdRoom: " + IdRoom.ToString() + " PriceIncreased" + PriceIncreased.ToString()); }
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); }
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(); }