Exemplo n.º 1
0
 private void buttonClean_Click(object sender, EventArgs e)
 {
     DataGridViewHelper.clean(dgvRoom);
     TextBoxHelper.clean(this);
     Front.fillComboBox(comboBoxFront);
     TypeRoom.fillComboBox(comboBoxType);
     HotelUserHelper.fillComboBox(comboBoxHotel);
 }
Exemplo n.º 2
0
        private void FormABMHabitacion_Load(object sender, EventArgs e)
        {
            this.ControlBox      = false;
            this.FormBorderStyle = FormBorderStyle.None;
            this.WindowState     = FormWindowState.Maximized;

            TextBoxHelper.clean(this);
            DataGridViewHelper.clean(dgvRoom);
            Front.fillComboBox(comboBoxFront);
            TypeRoom.fillComboBox(comboBoxType);
            HotelUserHelper.fillComboBox(comboBoxHotel);
        }
Exemplo n.º 3
0
        private void FormABMHabitacionModify_Load(object sender, EventArgs e)
        {
            this.ControlBox      = false;
            this.FormBorderStyle = FormBorderStyle.None;
            this.WindowState     = FormWindowState.Maximized;

            Front.fillComboBox(comboBoxFront);
            TypeRoom.fillComboBox(comboBoxType);
            HotelUserHelper.fillComboBox(comboBoxHotel);

            if (edit)
            {
                Habitacion room = HabitacionHelper.getRoomData(hotelId, floorId, roomId);
                this.textBoxRoom.Text            = room.id.ToString();
                this.textBoxRoom.Enabled         = false;
                this.textBoxFloor.Text           = room.floor.ToString();
                this.textBoxFloor.Enabled        = false;
                this.comboBoxHotel.SelectedIndex = this.comboBoxHotel.FindStringExact(room.hotelName.ToString());
                this.comboBoxHotel.Enabled       = false;
                this.comboBoxType.SelectedIndex  = this.comboBoxType.FindStringExact(room.typeDescription);
                this.comboBoxFront.SelectedIndex = this.comboBoxFront.FindStringExact(room.frontDescription);
                this.textBoxComodity.Text        = room.comodity;
            }
        }