示例#1
0
        private void instanciarMoficiacion(DataGridViewCellMouseEventArgs e)
        {
            String id, fechaCreacion, fechaHasta, fechaDesde, cantidadNoches, tipoHabitacion, tipoRegimen;

            id = dataGridViewListado.Rows[e.RowIndex].Cells[0].Value.ToString();

            fechaCreacion  = dataGridViewListado.Rows[e.RowIndex].Cells[1].Value.ToString();
            fechaDesde     = dataGridViewListado.Rows[e.RowIndex].Cells[2].Value.ToString();
            fechaHasta     = dataGridViewListado.Rows[e.RowIndex].Cells[3].Value.ToString();
            cantidadNoches = dataGridViewListado.Rows[e.RowIndex].Cells[4].Value.ToString();
            tipoHabitacion = dataGridViewListado.Rows[e.RowIndex].Cells[5].Value.ToString();
            tipoRegimen    = dataGridViewListado.Rows[e.RowIndex].Cells[6].Value.ToString();



            ModificarReserva modificarReseva = new ModificarReserva(id, fechaCreacion,
                                                                    fechaDesde,
                                                                    fechaHasta,
                                                                    cantidadNoches,
                                                                    tipoHabitacion,
                                                                    tipoRegimen);

            // me quede aquí
            modificarReseva.ShowDialog();
        }
示例#2
0
        private void modificacion_Click(object sender, EventArgs e)
        {
            Form modificacion = new ModificarReserva(id_usuario, id_hotel);

            this.Hide();
            modificacion.ShowDialog();
            this.Show();
        }