コード例 #1
0
        public CountDownTimer(CountDownTimer countDownTimer)
        {
            this.timer = countDownTimer.timer;
            this.start = countDownTimer.start;
            Thread t = new Thread(new ThreadStart(tikeTimer));

            t.Start();
        }
コード例 #2
0
 public PomodoroClock(PomodoroClock p)
 {
     config            = new int[] { CLOCK_TIMER_WORK, CLOCK_TIMER_BREAK, CLOCK_TIMER_WORK, CLOCK_TIMER_BREAK, CLOCK_TIMER_WORK, CLOCK_TIMER_BREAK, CLOCK_TIMER_WORK, CLOCK_TIMER_PAUSE };
     currentIndexTimer = 0;
     this.sujet        = p.sujet;
     this.client       = p.client;
     this.priorite     = p.priorite;
     tag            = p.tag;
     countDownTimer = new CountDownTimer(p.countDownTimer);
     this.date      = p.date;
 }
コード例 #3
0
 public PomodoroClock(string sujet, string client, int priorite, string tags, string date)
 {
     config            = new int[] { CLOCK_TIMER_WORK, CLOCK_TIMER_BREAK, CLOCK_TIMER_WORK, CLOCK_TIMER_BREAK, CLOCK_TIMER_WORK, CLOCK_TIMER_BREAK, CLOCK_TIMER_WORK, CLOCK_TIMER_PAUSE };
     currentIndexTimer = 0;
     this.sujet        = sujet;
     this.client       = client;
     this.priorite     = priorite;
     tag            = tags.Split(' ');
     countDownTimer = new CountDownTimer(config[currentIndexTimer]);
     this.date      = date;
 }