public AppFinder(LaunchablePlugins launchablePlugins, CharacterPlugins characterPlugins, XStream xstream, PersistanceHelper persistanceHelper) { this.xstream = xstream; this.persistanceHelper = persistanceHelper; LoadFiles(launchablePlugins); history = new History(new File(new FileInfo(Paths.Instance.History)), this.xstream, persistanceHelper); this.characterPlugins = characterPlugins; }
private void Initialize() { XStream = new XStream(); XStream.AddConverter(new FoldersConverter()); XStream.AddConverter(new OperationsConverter(this)); XStream.AddConverter(new Recent.RecentConverter(this)); XStream.AddConverter(Folder.Converter); XStream.AddConverter(File.Converter); XStream.Load(new PluginLoader(this).Assemblies); }
public History(File historyFile, XStream xstream, PersistanceHelper persistanceHelper) { this.historyFile = historyFile; this.xstream = xstream; dictionary = persistanceHelper.LoadOrSaveAndLoad(Paths.Instance.History, dictionary); }