public SettingsWnd() { this.InitializeComponent(); if (!DllSupportHelper.Check("Magnification.dll")) { this.tc.TabPages.Remove(this.tpMagnification); } }
private void HideMagnifierWnd() { if (!DllSupportHelper.Check("Magnification.dll") || !Settings.Default.ShowMagnifyingGlass) { return; } if (this.magnifierWnd != null && this.magnifierWnd.Visible) { this.magnifierWnd.Close(); } }
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; }