private static bool loadUserPreferences()
{
ACATPreferences.PreferencesFilePath = ProfileManager.GetFullPath("Settings.xml");
ACATPreferences.DefaultPreferencesFilePath = ProfileManager.GetFullPath("DefaultSettings.xml");
FileUtils.AppPreferencesDir = ProfileManager.CurrentProfileDir;
Common.AppPreferences = ACATPreferences.Load();
if (Common.AppPreferences == null)
{
MessageBox.Show("Unable to read preferences from " + FileUtils.AppPreferencesDir);
return false;
}
Common.AppPreferences.Save();
CoreGlobals.AppPreferences = Common.AppPreferences;
ACATPreferences.SaveDefaults<ACATPreferences>(ACATPreferences.DefaultPreferencesFilePath);
Common.AppPreferences.DebugAssertOnError = false;
ACATPreferences.ApplicationAssembly = Assembly.GetExecutingAssembly();
return true;
}