コード例 #1
0
 private async void LlenarLista()
 {
     try
     {
         ListaDeProfesiones = ProfesionServices.ObtenerProfesiones().OrderBy(p => p.IdProfesion).ToList();
     }
     catch (System.Exception ex)
     {
         await App.Current.MainPage.DisplayAlert("Contratámos - Ppal", string.Concat("Ha ocurrido un problema: ", ex.Message), "Ok");
     }
 }
コード例 #2
0
 public OfertasEmpleosViewModel()
 {
     ListaDeProfesiones = ProfesionServices.ObtenerProfesiones().OrderBy(p => p.IdProfesion).ToList();
     ListaCiudades      = clsCiudadesWs.CargarCiudades().OrderBy(c => c.NombreCiudad).ToList();
 }