Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Connect : IDTExtensibility2, IDTCommandTarget
- {
- public void OnConnection( object application, ext_ConnectMode connectMode,
- object addInInst, ref Array custom )
- {
- _applicationObject = ( DTE2 ) application;
- _applicationObject.Events.SelectionEvents.OnChange += SelectionEvents_OnChange;
- }
- void SelectionEvents_OnChange()
- {
- vsWindowType type = _applicationObject.ActiveWindow.Type;
- // switch (type) { ... }
- }
- }
- vsWindowType type = _applicationObject.ActiveWindow.Type;
Add Comment
Please, Sign In to add comment