private void FormABMHotelModify_Load(object sender, EventArgs e) { this.ControlBox = false; this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; reloadGrid(); Star.fillComboBox(comboBoxStar); if (edit) { Hotel hotelData = HotelHelper.getHotelData(hotelId); this.textBoxName.Text = hotelData.name; this.textBoxMail.Text = hotelData.mail; this.textBoxTelephone.Text = hotelData.telephone; this.textBoxAddress.Text = hotelData.address; this.textBoxAddressNumber.Text = hotelData.addressNumber.ToString(); this.textBoxCity.Text = hotelData.city; this.textBoxCountry.Text = hotelData.country; this.dtCreation.Value = hotelData.creation; this.comboBoxStar.SelectedIndex = this.comboBoxStar.FindStringExact(hotelData.star.ToString()); this.buttonSave.Text = "Editar hotel"; } }