public SkinningSettingsUpdater(BorderSkinningManager borderSkinningManager) { _borderSkinningManager = borderSkinningManager; Settings.BorderSkinningChanged += OnSkinningChangedHandler; OnSkinningChangedHandler(); }
public bool HandleNewWindow(TopLevelWindow window, BorderSkinningManager manager) { ExcludedWindow exludeInfo = ExcludeList[window]; if (exludeInfo != null) { if (exludeInfo.HasSkin) { manager.AddSkinWindow(new SkinableWindowBorder(window, exludeInfo.Skin, true)); } return true; } return false; }
public bool HandleNewWindow(TopLevelWindow window, BorderSkinningManager manager) { if (IncludeList.HasWindows) { ExcludedWindow included = IncludeList[window]; if (included == null) return true; if (included.Skin != null) { manager.AddSkinWindow(new SkinableWindowBorder(window, included.Skin, false)); return true; } } return false; }
public static void Main() { try { ErrorManager.Start(); Settings.Settings.Load(); SettingsDialogue.StartTray(); BorderSkinningManager = new BorderSkinningManager(WindowsHook); BorderSkinningManager.NewWindowHandlers.Insert(0, new ExplorerNewWindowHandler()); BorderSkinningManager.NewWindowHandlers.Insert(0, new ExclusionNewWindowHandler()); BorderSkinningManager.NewWindowHandlers.Insert(0, new InclusionNewWindowHandler()); BorderSkinningManager.NewWindowHandlers.Insert(0, new PreventShutdownSkinningNewWindowHandler()); _skinningSettingsUpdater = new SkinningSettingsUpdater(BorderSkinningManager); WindowsHook.Start(); Application.Run(); } catch (Exception ex) { ErrorManager.ProccessError(ex); } }
public bool HandleNewWindow(TopLevelWindow window, BorderSkinningManager manager) { // TODO: find another way to exclude Shut Down Windows or get the title name from the registry to support loclized names return window.Title == "Shut Down Windows"; }
public bool HandleNewWindow(TopLevelWindow window, BorderSkinningManager manager) { // TODO: find another way to exclude Shut Down Windows or get the title name from the registry to support loclized names return(window.Title == "Shut Down Windows"); }
public bool HandleNewWindow(TopLevelWindow window, BorderSkinningManager manager) { manager.AddSkinWindow(new SkinableWindowBorder(window, Settings.Settings.Skin, false)); return true; }
public bool HandleNewWindow(TopLevelWindow window, BorderSkinningManager manager) { manager.AddSkinWindow(new SkinableWindowBorder(window, Settings.Settings.Skin, false)); return(true); }