/// <summary>
        /// Called when the plugin has just been initialized.
        /// </summary>
        protected override void OnInitialized()
        {
            base.OnInitialized();

            controller = CreateDecompilerController();

            log = base.Host.GetLogger <ReflectorPluginCore>();
            base.Host.CurrentWindowInfoChanged += (s, e) =>
            {
                windowInfo = base.Host.CurrentWindowInfo;
                base.RaiseCanExecuteChanged(this);
            };

            windowInfo = base.Host.CurrentWindowInfo;
            base.RaiseCanExecuteChanged(this);

            log.Info(string.Format("'{0}' was initialized.", base.Descriptor.Name));
        }
Example #2
0
        /// <summary>
        ///     Called when the plugin has just been initialized.
        /// </summary>
        /// <inheritdoc />
        protected override void OnInitialized()
        {
            base.OnInitialized();

            _controller = CreateDecompilerController();

            _log = Host.GetLogger <ReflectorPluginCore>();
            Host.CurrentWindowInfoChanged += (s, e) =>
            {
                _windowInfo = Host.CurrentWindowInfo;
                RaiseCanExecuteChanged(this);
            };

            _windowInfo = Host.CurrentWindowInfo;
            RaiseCanExecuteChanged(this);

            _log.Info($"'{Descriptor.Name}' was initialized.");
        }
        /// <summary>
        /// Called when the plugin has just been initialized.
        /// </summary>
        protected override void OnInitialized()
        {
            base.OnInitialized();

            controller = CreateDecompilerController();

            log = base.Host.GetLogger<ReflectorPluginCore>();
            base.Host.CurrentWindowInfoChanged += (s, e) =>
            {
                windowInfo = base.Host.CurrentWindowInfo;
                base.RaiseCanExecuteChanged(this);
            };

            windowInfo = base.Host.CurrentWindowInfo;
            base.RaiseCanExecuteChanged(this);

            log.Info(string.Format("'{0}' was initialized.", base.Descriptor.Name));
        }