private void OpenFileExecute() { if (_dialogService.OpenFileDialog()) { string selectedFile = _dialogService.FullFileNames; // Путь к Excel-файлу // 1 - Поставщик данных - Excel _dataRepositoryService.SetDevices(1, selectedFile); //Устанавливаем список всех устройств в репозитории } }
private void OpenFileExecute() { if (_dialogService.OpenFileDialog()) { string selectedFile = _dialogService.FullFileNames; _dataRepositoryService.SetDevices(_excelDataDecoder.GetNetworkDevices(selectedFile)); } }