Пример #1
0
        public ProcEvent(CommandCustomWatch watch)
        {
            m_watch       = watch;
            m_debugEvents = watch.m_dte.Events.DebuggerEvents;
            m_debugEvents.OnEnterBreakMode  += OnEnterBreak;
            m_debugEvents.OnEnterDesignMode += OnEnterOther;
            m_debugEvents.OnEnterRunMode    += OnEnterOther;

            WatchConfig.InitAppConfig();
        }
Пример #2
0
        /// <summary>
        /// Initialization of the m_package; this method is called right after the m_package is sited, so this is the place
        /// where you can put all the initialization code that rely on services provided by VisualStudio.
        /// </summary>
        protected override void Initialize()
        {
            // 获取DTE
            // DTE2 dte = (DTE2)GetService(typeof(DTE));
            // DTE2 dte = (DTE2)Package.GetGlobalService(typeof(DTE));
            // string strNewExpr = string.Format("{{,,{0}}}{1}({2}, \"{3}\")", "1", "2", "3", "4");

            // 初始化命令
            CommandCustomWatch.Initialize(this);
            base.Initialize();
        }
Пример #3
0
 /// <summary>
 /// Initializes the singleton instance of the command.
 /// </summary>
 /// <param name="package">Owner m_package, not null.</param>
 public static void Initialize(Package package)
 {
     Instance = new CommandCustomWatch(package);
 }