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