public void Start() { if (Running) { throw new InvalidOperationException("Cursormonitor already running"); } screenBounds = CreateBounds(); monitorTimer = new System.Threading.Timer(TimerCallback, null, 0, monitorTimerInterval); changeMonitorTimer = new Timer(ChangeMonitorTimerCallback, null, 0, 1500); Running = true; }
private void ChangeMonitorTimerCallback(object sync) { screenBounds = CreateBounds(); }