コード例 #1
0
ファイル: Level.cs プロジェクト: fchauvel/heat
        private void Countdown(int duration, Timer.TickHandler tickHandler)
        {
            Timer timer = new Timer(duration, tickHandler);

            timer.DoWork();
        }
コード例 #2
0
ファイル: Level.cs プロジェクト: fchauvel/heat
 public void TimeSwitch(Timer.TickHandler tickHandler)
 {
     Countdown(0, tickHandler);
 }
コード例 #3
0
ファイル: Level.cs プロジェクト: fchauvel/heat
 public void TimeExercise(Timer.TickHandler tickHandler)
 {
     Countdown(workoutPhase.ExerciseDuration, tickHandler);
 }
コード例 #4
0
ファイル: Level.cs プロジェクト: fchauvel/heat
 public void TimeBreak(Timer.TickHandler tickHandler)
 {
     Countdown(workoutPhase.BreakDuration, tickHandler);
 }
コード例 #5
0
ファイル: Level.cs プロジェクト: fchauvel/heat
 public void TimeToStretching(Timer.TickHandler tickHandler)
 {
     Countdown(stretchingPhase.BreakDuration, tickHandler);
 }
コード例 #6
0
ファイル: Level.cs プロジェクト: fchauvel/heat
 public void TimeToWarmup(Timer.TickHandler tickHandler)
 {
     Countdown(warmupPhase.BreakDuration, tickHandler);
 }