示例#1
0
 public AutoSaveLoadConfiguration()
 {
     if (Environment.Is64BitProcess)
     {
         AutoLoad     = Properties.Settings.Default.EnableLoadOnStart64;
         AutoSave     = Properties.Settings.Default.EnableSaveOnExit64;
         DatabasePath = Properties.Settings.Default.DatabasePath64;
     }
     else
     {
         AutoLoad     = Properties.Settings.Default.EnableLoadOnStart32;
         AutoSave     = Properties.Settings.Default.EnableSaveOnExit32;
         DatabasePath = Properties.Settings.Default.DatabasePath32;
     }
     if (string.IsNullOrWhiteSpace(DatabasePath))
     {
         DatabasePath = COMUtilities.GetAutoSaveLoadPath();
     }
 }