private void btnEliminar_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in dgvReservas.Rows) { if (Convert.ToBoolean(row.Cells[0].Value)) { if (Convert.ToInt32(row.Cells[0].Value) >= 1) { Reserva res = new Reserva(); res.codigo = Convert.ToInt32(row.Cells[1].Value); res.usuarioCancelacion = Sesion.usuario.UsuarioId; frmMotivoCancelacion form = new frmMotivoCancelacion(res); form.Owner = this; form.Show(); } else { System.Windows.Forms.MessageBox.Show("No es posible modificar su reserva a menos de un día de que comience. "); } } } }
public void pasarReserva(Reserva res) { this._reserva = res; }
public frmMotivoCancelacion(Reserva r) { res = r; InitializeComponent(); }
private void nuevaReserva_Click(object sender, EventArgs e) { var nuevo = new Reservas.Reserva(_main.session); nuevo.Show(); }
public FormSeleccionarHabitaciones(Reserva r, int idTipoHabitacion) { _res = r; _idTipoHabitacion = idTipoHabitacion; InitializeComponent(); }
public IdentificarUsuario(Reserva res) { InitializeComponent(); this.reserva = res; }