public ActualizarHabitacion(Habitacion habitacion, Habitacoines h)
        {
            InitializeComponent();
            cargarCB();
            this._habitacion           = habitacion;
            this._habitacion_option    = h;
            this.label_habitacion.Text = "Habitacion: " + _habitacion.Numero;
            txt_precio.Text            = _habitacion.Precio.ToString();
            switch (_habitacion.Estatus)
            {
            case Cadenas.DISPONIBLE:
                cb_estatus.SelectedIndex = 0;
                pictureBox1.Image        = camas[0];
                break;

            case Cadenas.MANTENIMIENTO:
                cb_estatus.SelectedIndex = 1;
                pictureBox1.Image        = camas[1];
                break;

            case Cadenas.OCUPADO:
                cb_estatus.SelectedIndex = 2;
                pictureBox1.Image        = camas[2];
                break;
            }
            switch (_habitacion.Tipo)
            {
            case Cadenas.INDIVIDUAL:
                cb_tipo.SelectedIndex = 0;
                break;

            case Cadenas.DOBLE:
                cb_tipo.SelectedIndex = 1;
                break;

            case Cadenas.TRIPLE:
                cb_tipo.SelectedIndex = 2;
                break;
            }
        }
Beispiel #2
0
 public void setOption(Habitacoines h)
 {
     _habitacoin_options = h;
 }
Beispiel #3
0
        private void panel_habitaciones_Click(object sender, EventArgs e)
        {
            Habitacoines habitacion = new Habitacoines();

            configurarContenedor(habitacion);
        }