static LiteDevelopSettings()
        {
            Default = new LiteDevelopSettings(new FilePath(Application.StartupPath, "default_settings.xml"));

            if (File.Exists(_settingsPath))
                Instance = new LiteDevelopSettings(new FilePath(_settingsPath));
            else
                Reset();
        }
예제 #2
0
        static LiteDevelopSettings()
        {
            Default = new LiteDevelopSettings(new FilePath(Application.StartupPath, "default_settings.xml"));

            if (File.Exists(_settingsPath))
            {
                Instance = new LiteDevelopSettings(new FilePath(_settingsPath));
            }
            else
            {
                Reset();
            }
        }
 public static void Reset()
 {
     LiteDevelopApplication.Current.EnsureAppDataDirectoryIsCreated();
     LiteDevelopSettings.Default.CopyTo(Instance = new LiteDevelopSettings());
     Instance.Save();
 }
 public static void Reset()
 {
     LiteDevelopApplication.Current.EnsureAppDataDirectoryIsCreated();
     LiteDevelopSettings.Default.CopyTo(Instance = new LiteDevelopSettings());
     Instance.Save();
 }