Esempio n. 1
0
        public void RunHotspot()
        {
            if (hasFocus)
            {
                percentFill += 10;
            }
            else
            {
                if (percentFill > 0)
                {
                    percentFill -= 10;
                }
            }

            if (percentFill >= 100 && !finished)
            {
                finished          = true;
                updateTimer.Tick -= updateTimer_Tick;
                overlayForm.RemoveOverlay(this);
                callback();
            }
        }
Esempio n. 2
0
 public void Stop()
 {
     overlayForm.RemoveOverlay(this);
     running = false;
 }