public void AutomaticSetup() { ReadSettings(); var folders = ReadFolders(); if (folders == null || folders.Count == 0) { ErrorHandlingService.ExceptionHandler(new InvalidDataException()); } else if (folders.Count >= 1) { _folders = folders; } }
private void ReadSettings() { var info = new SettingsInfo(); try { info = SettingsService.ReadData(); } catch (Exception e) { ErrorHandlingService.ExceptionHandler(e); } _settings = info; }