Example #1
0
        private void Timer()
        {
            int      time = dataConfig.INTERVAL * 60;
            SetTimer st   = new SetTimer();

            while (time > 0 && !isBusy)
            {
                time--;
                TimeSpan minute = TimeSpan.FromSeconds(time);
                string   min    = minute.ToString();
                st.t = min;
                Messenger.Default.Send <SetTimer>(st);
                System.Threading.Thread.Sleep(1000);
            }

            while (isBusy)
            {
                System.Threading.Thread.Sleep(1000);
            }

            UpdateNote();
            System.Threading.Thread.Sleep(500);
            Timer();
        }
 private void SET_TIME(SetTimer ST)
 {
     TIMER = ST.t;
 }