Example #1
0
 public static void SaveSettings(FOSettings settings)
 {
     logger.Info("Serializing settings.");
     string json = JsonConvert.SerializeObject(settings, Formatting.Indented);
     logger.Info("Saving settings to {0}.", SettingsPath);
     File.WriteAllText(SettingsPath, json);
 }
 public MainPresenter(IMainView view, FOSettings settings)
 {
     this.view = view;
     this.settings = settings;
 }