Пример #1
0
 /// <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);
     }
 }
Пример #2
0
 /// <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;
 }
Пример #3
0
 /// <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));
 }
Пример #4
0
 /// <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();
 }
Пример #5
0
 public EnvWindowsManager(VSTalkPackage package)
 {
     _package = package;
 }