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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public static void SaveOptions(ProgramSettings settings)
 {
     SettingContainer.SetSettings(settings);
 }
 public static void SaveOptions(ProgramSettings settings)
 {
     SettingContainer.SetSettings(settings);
 }