Example #1
0
        public void LoadSettings()
        {
            var fileSavior = new FileSavior();

            if (fileSavior.Has(LauncherSettingsKey))
            {
                Settings = fileSavior.Get <LauncherSettings>(LauncherSettingsKey);
                SaveSettings();
            }
        }
        public void TestExtModulesAcrossSerializing_part2()
        {
            var savior = new FileSavior();

            Singleton.Add(savior);
            var     modulesManager = new PluginsManager();
            IAction testAction     = savior.Get <IAction>("testAction");

            Debug.WriteLine(testAction.GetValue(null));
            if (!testAction.GetType().Equals(modulesManager.GetModules().First()))
            {
                throw new Exception();
            }
        }