public GeneralOptionControl() { InitializeComponent(); _productUpdateSettings = ServiceLocator.GetInstance <IProductUpdateSettings>(); Debug.Assert(_productUpdateSettings != null); _recentPackageRepository = ServiceLocator.GetInstance <IRecentPackageRepository>(); Debug.Assert(_recentPackageRepository != null); }
public ProductUpdateService(IVsUIShell vsUIShell, IProductUpdateSettings productUpdateSettings) { if (productUpdateSettings == null) { throw new ArgumentNullException("productUpdateSettings"); } _vsUIShell = vsUIShell; _productUpdateSettings = productUpdateSettings; }
public GeneralOptionControl() { InitializeComponent(); _productUpdateSettings = ServiceLocator.GetInstance<IProductUpdateSettings>(); Debug.Assert(_productUpdateSettings != null); _recentPackageRepository = ServiceLocator.GetInstance<IRecentPackageRepository>(); Debug.Assert(_recentPackageRepository != null); }
public GeneralOptionControl() { InitializeComponent(); _productUpdateSettings = ServiceLocator.GetInstance <IProductUpdateSettings>(); Debug.Assert(_productUpdateSettings != null); _settings = ServiceLocator.GetInstance <ISettings>(); Debug.Assert(_settings != null); // Starting from VS11, we don't need to check for updates anymore because VS will do it. Controls.Remove(updatePanel); }
public ProductUpdateService( IVsExtensionRepository extensionRepository, IVsExtensionManager extensionManager, IVsUIShell vsUIShell, IProductUpdateSettings productUpdateSettings) { if (productUpdateSettings == null) { throw new ArgumentNullException("productUpdateSettings"); } _vsUIShell = vsUIShell; _extensionRepository = extensionRepository; _extensionManager = extensionManager; _productUpdateSettings = productUpdateSettings; }
public GeneralOptionControl() { InitializeComponent(); _productUpdateSettings = ServiceLocator.GetInstance<IProductUpdateSettings>(); Debug.Assert(_productUpdateSettings != null); _settings = ServiceLocator.GetInstance<ISettings>(); Debug.Assert(_settings != null); if (!VsVersionHelper.IsVisualStudio2010) { // Starting from VS11, we don't need to check for updates anymore because VS will do it. Controls.Remove(updatePanel); } }
public GeneralOptionControl() { InitializeComponent(); _productUpdateSettings = ServiceLocator.GetInstance <IProductUpdateSettings>(); Debug.Assert(_productUpdateSettings != null); _recentPackageRepository = ServiceLocator.GetInstance <IRecentPackageRepository>(); Debug.Assert(_recentPackageRepository != null); _settings = ServiceLocator.GetInstance <ISettings>(); Debug.Assert(_settings != null); if (!VsVersionHelper.IsVisualStudio2010) { // Starting from VS11, we don't need to check for updates anymore because VS will do it. Controls.Remove(updatePanel); } }