public Hotspot(Rectangle hotspotRect, Action callback) { updateTimer = EventSingleton.Instance().updateTimer; updateTimer.Tick += updateTimer_Tick; overlayForm = SharedFormsSingleton.Instance().overlayForm; overlayForm.RegisterOverlay(this); this.hotspotRect = hotspotRect; this.callback = callback; }
public Hotspot(Rectangle hotspotRect, Action callback) { updateTimer = EventSingleton.Instance().updateTimer; updateTimer.Tick += updateTimer_Tick; overlayForm = SharedFormsSingleton.Instance().overlayForm; overlayForm.RegisterOverlay(this); this.hotspotRect = hotspotRect; this.callback = callback; }
protected SharedFormsSingleton() { //Setting up the forms that need to always be available to the program overlayForm = new OverlayForm(); ToastOverlay = new Toast(); overlayForm.RegisterOverlay(ToastOverlay); zoomForm = new ZoomForm(); overlayForm.Show(); fixationDot = new FixationDot(); }
public void Start() { overlayForm.RegisterOverlay(this); running = true; }