private void initAppEvents()
        {
            (new Logger.Initializer()).configure();
            ((EnvDTE80.Events2)Dte2.Events).get_WindowVisibilityEvents().WindowShowing -= attachToOutputWindow;
            ((EnvDTE80.Events2)Dte2.Events).get_WindowVisibilityEvents().WindowShowing += attachToOutputWindow;

            loadData();
            PackageBinder = new Binder(Dte2);

            _menuItemMain.Visible = true;

            owpListener = new Receiver.Output.OWP(PackageBinder.Environment);
            owpListener.attachEvents();
            owpListener.Receiving += (object sender, Receiver.Output.PaneArgs e) => {
                ((Bridge.IEvent)PackageBinder).onBuildRaw(e.Raw, e.Guid, e.Item);
            };
        }
Ejemplo n.º 2
0
        private void initAppEvents()
        {
            (new Logger.Initializer()).configure();
            ((EnvDTE80.Events2)Dte2.Events).get_WindowVisibilityEvents().WindowShowing -= attachToOutputWindow;
            ((EnvDTE80.Events2)Dte2.Events).get_WindowVisibilityEvents().WindowShowing += attachToOutputWindow;

            loadData();
            PackageBinder = new Binder(Dte2);

            _menuItemMain.Visible = true;

            owpListener = new Receiver.Output.OWP(PackageBinder.Environment);
            owpListener.attachEvents();
            owpListener.Receiving += (object sender, Receiver.Output.PaneArgs e) => {
                ((Bridge.IEvent)PackageBinder).onBuildRaw(e.Raw, e.Guid, e.Item);
            };
        }