internal static void SetUpdateChkMethod(string methodName)
 {
     _config = GetConfig();
     if (_config.UpdateMethod == methodName) return;
     _config.UpdateMethod = methodName;
     UpdateConfig();
 }
 internal static Config GetConfig()
 {
     if (_config == null) {
         _config = ReadConfig();
     }
     return _config ?? (_config = new Config() {UpdateMethod = UpdateCheckTask.Auto});
 }
 internal static void SetLastUpdateChkVal()
 {
     _config = GetConfig();
     long ticks = DateTime.UtcNow.Ticks;
     ticks /= 10000000; // Convert to seconds
     _config.LastUpdateChk = ticks;
     UpdateConfig();
 }
        internal static void SetCulture(string cultureName)
        {
            _config = GetConfig();
            if (_config.CultureName == cultureName) return;
            _config.CultureName = cultureName;

            UpdateConfig();
        }