Inheritance: System.Windows.Controls.TextBlock
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #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);
        }