Esempio n. 1
0
        public SettingsWnd()
        {
            this.InitializeComponent();

            if (!DllSupportHelper.Check("Magnification.dll"))
            {
                this.tc.TabPages.Remove(this.tpMagnification);
            }
        }
Esempio n. 2
0
        private void HideMagnifierWnd()
        {
            if (!DllSupportHelper.Check("Magnification.dll") || !Settings.Default.ShowMagnifyingGlass)
            {
                return;
            }

            if (this.magnifierWnd != null && this.magnifierWnd.Visible)
            {
                this.magnifierWnd.Close();
            }
        }
Esempio n. 3
0
        private void ShowMagnifierWnd()
        {
            if (!DllSupportHelper.Check("Magnification.dll") || !Settings.Default.ShowMagnifyingGlass)
            {
                return;
            }

            this.magnifierWnd      = new MagnifierWnd();
            this.magnifierWnd.Size = new Size(Settings.Default.MagnifyingGlassWidth, Settings.Default.MagnifyingGlassHeight);
            this.magnifierWnd.Show();

            Magnifier magnifier = new Magnifier(this.magnifierWnd);

            magnifier.MagnificationFactor = Settings.Default.MagnificationFactor;
        }