/// <summary> /// Initializes a new instance of the <see cref="ShellEventListener"/> class. /// </summary> /// <param name="package">The package hosting the event listener.</param> /// <param name="shellService">The shell service.</param> internal ShellEventListener(VSTalkPackage package, IVsShell shellService) : base(package) { _shellService = shellService; if (_shellService != null) { _shellService.AdviseBroadcastMessages(this, out _broadcastEventCookie); _shellService.AdviseShellPropertyChanges(this, out _propertyEventCookie); } }
/// <summary> /// Initializes a new instance of the <see cref="BaseEventListener"/> class. /// </summary> /// <param name="package">The package hosting the event listener.</param> protected BaseEventListener(VSTalkPackage package) { Package = package; }
/// <summary> /// Gets an instance of the <see cref="ThemeManager"/> class. /// </summary> /// <param name="package">The hosting package.</param> /// <returns>An instance of the <see cref="ThemeManager"/> class.</returns> internal static ThemeManager GetInstance(VSTalkPackage package) { return _instance ?? (_instance = new ThemeManager(package)); }
/// <summary> /// Initializes a new instance of the <see cref="ThemeManager"/> class. /// </summary> /// <param name="package">The hosting package.</param> private ThemeManager(VSTalkPackage package) { _package = package; Init(); }
public EnvWindowsManager(VSTalkPackage package) { _package = package; }