예제 #1
0
        public ShellEventsListener(DTE2 dte)
        {
            appObject   = dte;
            dteEvents   = dte.Events.DTEEvents;
            debugEvents = dte.Events.DebuggerEvents;
            currentMode = ShellHelper.GetMode(appObject);

            dteEvents.ModeChanged         += InternalModeChanged;
            debugEvents.OnEnterBreakMode  += OnEnterBreakMode;
            debugEvents.OnEnterDesignMode += OnEnterDesignMode;
            debugEvents.OnEnterRunMode    += OnEnterRunMode;
        }
예제 #2
0
 void InternalModeChanged(vsIDEMode lastMode)
 {
     FireEventAndUpdateMode(ShellHelper.GetMode(lastMode));
 }