Esempio n. 1
0
        private async void MostrarListadoPacientesDiagnosticados(decimal?indicador)
        {
            try
            {
                IsBusyLoadingIndicadores = true;

                IEnumerable <decimal> selectedAreasIds        = SelectedAreas.Select(x => x.ID);
                IEnumerable <decimal> selectedProfesionalsIds = SelectedProfesionales.Select(x => x.ID);

                var pacientes = await Task.Run(() => indicadoresService.GetPacientesDiagnosticados(selectedProfesionalsIds, selectedAreasIds, FechaInicio, FechaFin, indicador.Value));

                var resp = modalDialogHelper.ShowModalDialog("Estadisticas.PacientesDiagnosticados",
                                                             0,
                                                             0,
                                                             System.Windows.ResizeMode.NoResize,
                                                             System.Windows.SizeToContent.WidthAndHeight,
                                                             pacientes);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Ha ocurrido un error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
            finally
            {
                IsBusyLoadingIndicadores = false;
            }
        }