static SettingsHelper() { SettingContainer = SimpleIOCContainer.Instance.Resolve<IGenericSettingsRepository<ProgramSettings>>(); Settings = SettingContainer.GetSettings(); if (Settings != null) return; var appPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); var callRecorderPath = Path.Combine(appPath, "Ozeki", "Call recorder"); Settings = new ProgramSettings { RecordableExtensions = new List<string>(), RecordableOutsideLines = new List<string>(), RecordingFileFormat = RecordingFileFormat.MP3, RecordingPath = callRecorderPath }; SettingContainer.SetSettings(Settings); }
static SettingsHelper() { SettingContainer = SimpleIOCContainer.Instance.Resolve <IGenericSettingsRepository <ProgramSettings> >(); Settings = SettingContainer.GetSettings(); if (Settings != null) { return; } var appPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); var callRecorderPath = Path.Combine(appPath, "Ozeki", "Call recorder"); Settings = new ProgramSettings { RecordableExtensions = new List <string>(), RecordableOutsideLines = new List <string>(), RecordingFileFormat = RecordingFileFormat.MP3, RecordingPath = callRecorderPath }; SettingContainer.SetSettings(Settings); }
public static void SaveOptions(ProgramSettings settings) { SettingContainer.SetSettings(settings); }
public static void SaveOptions(ProgramSettings settings) { SettingContainer.SetSettings(settings); }