Beispiel #1
0
        public void Start()
        {
            Skype = new SKYPE4COMLib.Skype();
            Skype.Attach();

            LoopTimer.Start();
        }
Beispiel #2
0
        private void DoTimer(TimeSpan delay)
        {
            if (m_Timer != null)
                m_Timer.Stop();

            m_Timer = new LoopTimer(this, delay);
            m_Timer.Start();
        }
 /// <summary>
 /// Starts the TimerViewModel clock and the LoopTimer clock.
 /// Instantiates the LoopTimer with the TimerViewModel's attributes.
 /// </summary>
 public async Task Start()
 {
     clock           = new Timer(100);
     clock.Elapsed  += Sync;
     clock.AutoReset = true;
     clock.Start();
     await Task.Run(() =>
     {
         lt = new LoopTimer(this);
         lt.Start();
     });
 }
Beispiel #4
0
 private void TimerForm_Load(object sender, EventArgs e)
 {
     LoopTimer.Start();
     this.Size = new Size(168, 32);
 }