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

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

            m_Timer = new LoopTimer(this, delay);
            m_Timer.Start();
        }
예제 #3
0
 /// <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();
     });
 }
예제 #4
0
파일: Form1.cs 프로젝트: Alscenic/ez-timer
 private void TimerForm_Load(object sender, EventArgs e)
 {
     LoopTimer.Start();
     this.Size = new Size(168, 32);
 }