void uiLista_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e) { if (!ValidarConexionYUsuarioLogueado(sender)) { return; } switch (e.Parameters.Split('|')[0]) { case "ObtenerInformacionDeDepartamentos": var paisArgumento = new ScoutingArgumento(); paisArgumento.Pais = new Pais(); paisArgumento.Pais.COUNTRY = "GUATEMALA"; UsuarioDeseaObtenerDepartamentos?.Invoke(sender, paisArgumento); break; case "LlenarListaMunicipio": if (UiListaDepartamentos.Value != null) { var departamento = UiListaDepartamentos.Value.ToString(); var pais = new Pais(); pais.COUNTRY = "GUATEMALA"; UsuarioDeseaObtenerMunicipios?.Invoke(sender, new ScoutingArgumento { Departamento = new Departamento { DEPARTMENT = departamento, COUNTRY = pais.COUNTRY } }); } break; case "ObtenerRutas": var eventos = new EventArgs(); UsuarioDeseaObtenerRutas?.Invoke(sender, eventos); break; } }
void uiLista_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e) { //String RefCVCdays= ""; switch (e.Parameters.Split('|')[0]) { case "LlenarListaMunicipio": if (UiListaDepartamentos.Value != null) { var departamento = UiListaDepartamentos.Value.ToString(); UsuarioDeseaObtenerMunicipios?.Invoke(sender, new ScoutingArgumento { Departamento = new Departamento { DEPARTMENT = departamento, COUNTRY = Pais.COUNTRY } }); } break; } }