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