public RecentlyUsedItemsService(IXmlSerializer xmlSerializer) { Argument.IsNotNull(() => xmlSerializer); _xmlSerializer = xmlSerializer; _fileName = Path.Combine(Path.GetApplicationDataDirectory(), "recentlyused.xml"); _items = new RecentlyUsedItems(); MaximumItemCount = 10; Load(); }
public RecentlyUsedItemsService(IXmlSerializer xmlSerializer, IFileService fileService, IAppDataService appDataService) { Argument.IsNotNull(() => xmlSerializer); Argument.IsNotNull(() => fileService); Argument.IsNotNull(() => appDataService); _xmlSerializer = xmlSerializer; _fileService = fileService; _appDataService = appDataService; _fileName = Path.Combine(appDataService.GetApplicationDataDirectory(Catel.IO.ApplicationDataTarget.UserRoaming), "recentlyused.xml"); _items = new RecentlyUsedItems(); MaximumItemCount = 10; Load(); }