Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 private void ChangeMonitorTimerCallback(object sync)
 {
     screenBounds = CreateBounds();
 }