Esempio n. 1
0
        public void Stop()
        {
            dt.Stop();
            IncrementMin = Timer.DurationMin;
            IncrementSec = 0;
            Timer.State  = TimerState.Stopped;

            NotifyIconService.SetStatusIcon("Stopped");
        }
Esempio n. 2
0
        public void Pause()
        {
            if (Timer.State == TimerState.Paused)
            {
                return;
            }
            dt.Stop();
            Timer.State = TimerState.Paused;

            NotifyIconService.SetStatusIcon("Paused");
        }
Esempio n. 3
0
        public void Start()
        {
            if (Timer.State == TimerState.Started)
            {
                return;
            }
            else if (Timer.State == TimerState.Stopped)
            {
                IncrementMin = Timer.DurationMin;
            }
            dt.Start();

            NotifyIconService.SetStatusIcon("Started");
        }
Esempio n. 4
0
 public void Disconnect()
 {
     NotifyIconService.SetStatusIcon("disconnected");
     IsConnected = false;
 }
Esempio n. 5
0
 public void Connect()
 {
     NotifyIconService.SetStatusIcon("connected");
     IsConnected = true;
 }