/// <summary> /// Instance of the magnifying glass /// </summary> /// <param name="movingGlass">Create a moving glass if the user clicks on this one?</param> public MagnifyingGlass(bool movingGlass) { if (movingGlass) { // Moving glass is enabled m_MovingGlassForm = new MagnifyingGlassForm(); MovingGlassForm.MagnifyingGlass.ShowPosition = false; MovingGlassForm.MagnifyingGlass.DisplayUpdated += new DisplayUpdatedDelegate(MagnifyingGlass_DisplayUpdated); MovingGlassForm.MagnifyingGlass.Click += new EventHandler(_MovingGlass_Click); MouseWheel += new MouseEventHandler(MagnifyingGlass_MouseWheel); Cursor = Cursors.SizeAll; UseMovingGlass = true; } _UpdateTimer.Tick += new System.EventHandler(_UpdateTimer_Tick); Click += new System.EventHandler(MagnifyingGlass_Click); CalculateSize(); }