public void SavePreferences(UserPreferences preferences)
 {
     this.CurrentPreferences = preferences;
     this.SaveInternal(preferences);
     this.PreferencesSaved?.Invoke(this, preferences);
 }