Ejemplo n.º 1
0
 private void active()
 {
     if (button1.InvokeRequired && button2.InvokeRequired &&
         button3.InvokeRequired && textBox1.InvokeRequired)
     {
         ActiveCallBack a = new ActiveCallBack(active);
         this.Invoke(a, new object[] {});
     }
     else
     {
         button1.Enabled  = true;
         button2.Enabled  = true;
         button3.Enabled  = true;
         textBox1.Enabled = true;
     }
 }
Ejemplo n.º 2
0
 public void init(ActiveCallBack ActiveCallBack)
 {
     AllTimerCharacter   = new List <TimerFormat> ();
     this.activeCallBack = ActiveCallBack;
     InvokeRepeating("runTime", 0, BaseRunTime);
 }