Ejemplo n.º 1
0
 public RoundSchedule()
 {
     Rounds = new ObservableCollection<Round>();
     Timer = new RoundTimer();
     OverralTime = TimeSpan.Zero;
     Rounds.CollectionChanged += RoundsTimeCollectionChanged;
     Timer.RestEnded += TimerRestEnded;
     Timer.RoundEnded += TimerRoundEnded;
     Timer.FiveSecondsBeforeRestEnd += TimerFiveSecondsBeforeRestEnd;
     CurrentRoundIndex = 1;
     RestEndSound = RoundEndSound = SettingsManager.CurrentSettings.SoundFile;
     PauseButtonText = ProgramTexts.Pause;
     StartStopButtonText = ProgramTexts.Start;
     RestGongTimer = new DispatcherTimer();
     RestGongTimer.Tick += RestTimerTick;
     RestGongTimer.Interval = TimeSpan.FromSeconds(1);
     _restSoundPlayer = new SoundPlayer(RestEndSound);
 }
Ejemplo n.º 2
0
 public RoundSchedule()
 {
     Rounds      = new ObservableCollection <Round>();
     Timer       = new RoundTimer();
     OverralTime = TimeSpan.Zero;
     Rounds.CollectionChanged       += RoundsTimeCollectionChanged;
     Timer.RestEnded                += TimerRestEnded;
     Timer.RoundEnded               += TimerRoundEnded;
     Timer.FiveSecondsBeforeRestEnd += TimerFiveSecondsBeforeRestEnd;
     CurrentRoundIndex               = 1;
     RestEndSound           = RoundEndSound = SettingsManager.CurrentSettings.SoundFile;
     PauseButtonText        = ProgramTexts.Pause;
     StartStopButtonText    = ProgramTexts.Start;
     RestGongTimer          = new DispatcherTimer();
     RestGongTimer.Tick    += RestTimerTick;
     RestGongTimer.Interval = TimeSpan.FromSeconds(1);
     _restSoundPlayer       = new SoundPlayer(RestEndSound);
 }