public static void Reload()
 {
     try
     {
         if (!File.Exists(Methods.ProgramPaths.DefaultPrefrencesFilePath))
         {
             File.Create(Methods.ProgramPaths.DefaultPrefrencesFilePath).Close();
         }
         string json = File.ReadAllText(Methods.ProgramPaths.DefaultPrefrencesFilePath);
         try
         {
             JsonSerializerSettings settings = new JsonSerializerSettings();
             settings.ObjectCreationHandling = ObjectCreationHandling.Replace;
             DefaultPrefrences result = JsonConvert.DeserializeObject <DefaultPrefrences>(json, settings);
             if (result != null)
             {
                 DefaultInstance = result;
             }
             else
             {
                 DefaultInstance = new DefaultPrefrences();
             }
         }
         catch
         {
             DefaultInstance = new DefaultPrefrences();
         }
     }
     catch (Exception ex)
     {
         Methods.ProgramBase.Log.ErrorFormat("Failed to Load DefaultPrefrences! Reason: {0}", ex.Message);
         Methods.ProgramBase.Log.InfoFormat("Creating a new DefaultPrefrences in Memory...");
         DefaultInstance = new DefaultPrefrences();
     }
 }
 public static void Reset()
 {
     DefaultInstance = new DefaultPrefrences();
     Save();
     Reload();
 }