protected override void Initialize()
        {
            base.Initialize();
            _dte        = GetService(typeof(DTE)) as DTE2;
            _dispatcher = Dispatcher.CurrentDispatcher;

            Logger.Initialize(this, "Package Installer");
            InstallPackage.Initialize(this);
        }
        protected override void Initialize()
        {
            _dte     = GetService(typeof(DTE)) as DTE2;
            Settings = (Settings)GetDialogPage(typeof(Settings));

            Logger.Initialize(this, Vsix.Name);
            InstallPackage.Initialize(this);

            _control = new StatusbarControl(Settings, _dte);

            var injector = new StatusBarInjector(Application.Current.MainWindow);

            injector.InjectControl(_control);
        }
Exemple #3
0
        protected override async task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await JoinableTaskFactory.SwitchToMainThreadAsync();

            _dte = await GetServiceAsync(typeof(DTE)) as DTE2;

            Settings = (Settings)GetDialogPage(typeof(Settings));

            Logger.Initialize(this, Vsix.Name);
            InstallPackage.Initialize(this);

            _control = new StatusbarControl(Settings, _dte);

            var injector = new StatusBarInjector(Application.Current.MainWindow);

            injector.InjectControl(_control);
        }
 public static void Initialize(Package package)
 {
     Instance = new InstallPackage(package);
 }
 public static void Initialize(Package package)
 {
     Instance = new InstallPackage(package);
 }