/// <summary> /// Recupera os dados do banco de dados e coloca dentro do vetor dinâmico /// </summary> /// <returns></returns> private ObservableCollection <NobreakDemandDataView> GetNobreakDemandDataList() { ObservableCollection <NobreakDemandDataView> nobreakDemandDataViewObservableList = new ObservableCollection <NobreakDemandDataView>(); //foreach (var item in App.Channel.AllEvents()) //TODO: Trazer os dados do relatório através do Serviço foreach (var item in Query.FindAll()) { NobreakDemandDataView nobreakDemandDataView = new NobreakDemandDataView() { Battery = item.Battery, EventReasons = ResolveEventReasons(item.EventReasons), Frequency = item.Frequency, InputVoltage = item.InputVoltage, OutputVoltage = item.OutputVoltage, Load = item.Load, Temperature = item.Temperature, CreationData = TranslateData(item.CreationData) }; nobreakDemandDataViewObservableList.Add(nobreakDemandDataView); } return(nobreakDemandDataViewObservableList); }