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) { } }
public CycleBellManager(IPresetCollection presetCollection, ITimerManager timerManager) : this(null, presetCollection, timerManager) { }