public ButtonAlt() : base()
 {
     intermediate = IntermediateClass.GetInstance();
     intermediate.TimerChanged += DetectTimerChange;
     if (intermediate.mouseControl)
     {
         clickTimer          = new System.Timers.Timer(intermediate.ClickTimer);
         clickTimer.Elapsed += PollUpdates;
     }
 }
Esempio n. 2
0
 public static IntermediateClass GetInstance()
 {
     if (_Instance == null)
     {
         lock (padlock)
         {
             if (_Instance == null)
             {
                 _Instance = new IntermediateClass();
             }
         }
     }
     return(_Instance);
 }