public DataCarriers.Settings GetSettings() { var filePath = _rootFolder.FullName + "\\settings.json"; var fi = new FileInfo(filePath); if (fi.Exists) { return(LoadObjectFromFile <DataCarriers.Settings>(fi)); } var settings = new DataCarriers.Settings(); SaveSettings(settings); return(settings); }
public void SaveSettings(DataCarriers.Settings settings) { var filePath = _rootFolder.FullName + "\\settings.json"; Save(settings, filePath); }