private void buttonGenerarReserva_Click(object sender, EventArgs e)
 {
     using (GenerarReserva generarReserva = new GenerarReserva(sesion))
     {
         var resultFormLogin = generarReserva.ShowDialog();
     }
 }
        private void button1_Click(object sender, EventArgs e)
        {
            RepositorioUsuario repoUsuario = new RepositorioUsuario();
            Usuario            guest       = repoUsuario.getByUsername("guest");

            using (GenerarReserva generarReserva = new GenerarReserva(guest))
            {
                var resultFormLogin = generarReserva.ShowDialog();
            }
        }
Beispiel #3
0
        private void newReservaButton_Click(object sender, EventArgs e)
        {
            GenerarReserva gr = new GenerarReserva();

            gr.ShowDialog();
        }