public ObservableCollection <SystemInfoModel> GetData() { //File-based-->get from info repository _data = new ObservableCollection <SystemInfoModel>(_dataInfoRepository.GetAllData()); //DB-based-->get from info repository return(Data); }
public DataCollectSrv() { uProcessId = ""; //BinaryFile based==> initialize device info repository!!!! and get all listed devices !!!!! _dataInfoRepository = new SystemInfoRepository("ExcaliburSystemReport"); _data = new ObservableCollection <SystemInfoModel>(_dataInfoRepository.GetAllData()); FullDataReport = new SystemInfoModel(); FullDataReport.DeviceDriverDataList = new List <DeviceManagerDataModel>(); FullDataReport.ModuleDataList = new List <ModuleDataModel>(); FullDataReport.osDataModel = new OsDataModel(); Init(); }