public CountDownTimer(CountDownTimer countDownTimer) { this.timer = countDownTimer.timer; this.start = countDownTimer.start; Thread t = new Thread(new ThreadStart(tikeTimer)); t.Start(); }
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; }
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; }