Esempio n. 1
0
 protected virtual void OnTimerEvent(TimerEventArgs args)
 {
     if (timerEvent != null)
     {
         timerEvent(this, args);
     }
 }
Esempio n. 2
0
      public void timer()
      {
          TimerEventArgs args = new TimerEventArgs();

          for (int k = 0; k < 3; k++)
          {
              args.time = i;
              OnTimerEvent(args);
              System.Threading.Thread.Sleep(1000);
              i++;
          }
      }
Esempio n. 3
0
 private void fm2OnttEvent(object sender, TimerEventArgs args)
 {
     this.textBox1.Text = args.time.ToString();
     this.dataGridView1.Rows.Add(args.time.ToString());
     this.Refresh();
 }