public void LoadSettings() { var fileDataManager = new FileDataManager(); if (fileDataManager.Has(LauncherSettingsKey)) { Settings = fileDataManager.Get <LauncherSettings>(LauncherSettingsKey); SaveSettings(); } }
public void TestExtModulesAcrossSerializing_part2() { var dataManager = new FileDataManager(); Singleton.Add(dataManager); var modulesManager = new PluginsManager(); IAction testAction = dataManager.Get <IAction>("testAction"); Debug.WriteLine(testAction.GetValue(null)); if (!testAction.GetType().Equals(modulesManager.GetModules().First())) { throw new Exception(); } }