private void btnModificar_Click(object sender, EventArgs e) { if (currentReserva != null) { AltaReserva form = new AltaReserva(currentReserva); form.ShowDialog(); SetearReserva(ReservaService.GetReservaByCodigo(currentReserva.Codigo)); } else { MessageBox.Show("Primero debe seleccionar una reserva."); } }
private void btnNueva_Click(object sender, EventArgs e) { AltaReserva form = new AltaReserva(null); form.ShowDialog(); }