예제 #1
0
        //Metodos eventos
        private void btnVentanaNuevaCita_Click(object sender, RoutedEventArgs e)
        {
            CP_ReservaCarga ventanaNuevaCita = new CP_ReservaCarga();

            ventanaNuevaCita.ShowDialog();
            DatosParaIniciar();
        }
예제 #2
0
 private void btnModificar_Click(object sender, RoutedEventArgs e)
 {
     if (dtgridRegistrosCita.SelectedCells.Count > 0) //dtg_verUsuarios.SelectedCells.Count > 0
     {
         Reserva         oreserva          = (Reserva)dtgridRegistrosCita.SelectedItem;
         CP_ReservaCarga ventanaEditarCita = new CP_ReservaCarga(this.listReservasAll, oreserva);
         ventanaEditarCita.ShowDialog();
         DatosParaIniciar();
     }
     else
     {
         MessageBox.Show("No seleccionó ninguna cita");
     }
 }