Example #1
0
 private void UiListaVehiculos_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Tag == null) return;
     switch (e.Button.Tag.ToString())
     {
         case "UiBtnRefrescarListaPilotos":
             UsuarioDeseaObtenerPilotos?.Invoke(sender, new PilotoArgumento { Piloto = new Piloto() });
             break;
         case "UiBtnRefrescarListaVehiculos":
             UsuarioDeseaObtenerVehiculos?.Invoke(sender, e);
             break;
     }
 }
Example #2
0
 private void UiBotonRefrescar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         UsuarioDeseaObtenerVehiculos?.Invoke(sender,
                                              new VehiculoArgumento {
             Vehiculo = new Vehiculo()
         });
     }
     catch (Exception ex)
     {
         InteraccionConUsuarioServicio.Alerta(ex.Message);
     }
 }