예제 #1
0
        public DTE_Commands GetCommands()
        {
            EnvDTE.Commands xx   = mDte2.Commands;
            DTE_Commands    cmds = new DTE_Commands(this, xx);

            return(cmds);
        }
예제 #2
0
        public void EnumerateCommands(DTE_Output InOutput)
        {
            DTE_Commands cmds = GetCommands();
            int          jx   = 0;

            foreach (DTE_Command cmd in cmds)
            {
                ++jx;
                InOutput.WriteLine(
                    "Command " + cmd.Name + " ID:" + cmd.ID.ToString() +
                    " guid:" + cmd.Guid +
                    " jx: " + jx.ToString());
            }
        }