private void BindSettings(bool enableHotkeys) { BindPosition(null); if (Framework.Settings.Instance.AlwaysTop) { SetTopMost(false); ShowDesktop.RemoveHook(); } else { ClearTopMost(false); ShowDesktop.AddHook(this); } if (Framework.Settings.Instance.ClickThrough) { SetClickThrough(); } else { ClearClickThrough(); } if (Framework.Settings.Instance.ToolbarMode) { HideInAltTab(); } else { ShowInAltTab(); } if (WindowControls.Visibility != Visibility.Visible) { if (Framework.Settings.Instance.CollapseMenuBar) { WindowControls.Visibility = Visibility.Collapsed; } else { WindowControls.Visibility = Visibility.Hidden; } } Hotkey.Initialize(this, Framework.Settings.Instance.Hotkeys); if (enableHotkeys) { Hotkey.Enable(); } }
private void BindSettings(bool enableHotkeys) { int _screen; DockEdge _edge; WorkArea _windowWA; WorkArea _appbarWA; Monitor.GetWorkArea(this, out _screen, out _edge, out _windowWA, out _appbarWA); Left = _windowWA.Left; Top = _windowWA.Top; Width = _windowWA.Width; Height = _windowWA.Height; if (Properties.Settings.Default.UseAppBar) { SetAppBar(_screen, _edge, _windowWA, _appbarWA); } else { ClearAppBar(); } if (Properties.Settings.Default.AlwaysTop) { SetTop(); } else { ClearTop(); } if (Properties.Settings.Default.ClickThrough) { SetClickThrough(); } else { ClearClickThrough(); } Hotkey.Initialize(this, Properties.Settings.Default.Hotkeys); if (enableHotkeys) { Hotkey.Enable(); } }
private void BindSettings(bool enableHotkeys) { BindPosition(null); if (Framework.Settings.Instance.AlwaysTop) { SetTopMost(false); ShowDesktop.RemoveHook(); } else { ClearTopMost(false); ShowDesktop.AddHook(this); } if (Framework.Settings.Instance.ClickThrough) { SetClickThrough(); } else { ClearClickThrough(); } if (Framework.Settings.Instance.ShowAltTab) { ShowInAltTab(); } else { HideInAltTab(); } Hotkey.Initialize(this, Framework.Settings.Instance.Hotkeys); if (enableHotkeys) { Hotkey.Enable(); } }