Ejemplo n.º 1
0
        public CycleBellManager(string fileName, IPresetCollection presetCollection, ITimerManager timerManager)
        {
            FileName = fileName;

            TimerManager = timerManager ?? throw new ArgumentNullException(nameof(timerManager), "timerManager can't be null");
            TimerManager.DontPreserveBaseTime();

            PresetCollection = presetCollection ?? throw new ArgumentNullException(nameof(presetCollection), "presetCollection can't be null");
            PresetCollection.Clear();

            try {
                OpenPresets();
                RemoveDefaultPresets();
            }
            catch (FileNotFoundException) { }
        }
Ejemplo n.º 2
0
 public void ClearPresets()
 {
     PresetCollection.Clear();
 }