/// <summary> /// Creates the filename for the category file. /// </summary> /// <returns>Returns the filename for the category file.</returns> private string CreateFilenameForCategory() { var userFolder = _folderUtils.GetUserDataPath(); var filename = Path.Combine(userFolder, "Categories.data"); return(filename); }
public FinishedDownloadsRepository( IFinishedDownloadsDataAccess finishedDownloadsDataAccess, IFolderUtils folderUtils) { _finishedDownloadsDataAccess = finishedDownloadsDataAccess; _folderUtils = folderUtils; _filename = Path.Combine(_folderUtils.GetUserDataPath(), "FinishedDownloads.data"); _finishedDownloads = _finishedDownloadsDataAccess.LoadFinishedDownloads(_filename); if (_finishedDownloads == null) { _finishedDownloads = new FinishedDownloads(); _finishedDownloadsDataAccess.SaveFinishedDownloads(_finishedDownloads, _filename); } }
public FinishedDownloadsRepository( IFinishedDownloadsDataAccess finishedDownloadsDataAccess, IFolderUtils folderUtils) { _finishedDownloadsDataAccess = finishedDownloadsDataAccess; _folderUtils = folderUtils; _filename = Path.Combine(_folderUtils.GetUserDataPath(), "FinishedDownloads.data"); _finishedDownloads = _finishedDownloadsDataAccess.LoadFinishedDownloads(_filename); if (_finishedDownloads == null) { _finishedDownloads = new FinishedDownloads(); _finishedDownloadsDataAccess.SaveFinishedDownloads(_finishedDownloads, _filename); } }
public SettingsManager(IFolderUtils folderUtils, ISettingsDataAccess settingsDataAccess) { _folderUtils = folderUtils; _settingsDataAccess = settingsDataAccess; _settingsFilename = Path.Combine(_folderUtils.GetUserDataPath(), "settings.xml"); }
public SettingsManager(IFolderUtils folderUtils, ISettingsDataAccess settingsDataAccess) { _folderUtils = folderUtils; _settingsDataAccess = settingsDataAccess; _settingsFilename = Path.Combine(_folderUtils.GetUserDataPath(), "settings.xml"); }