Ejemplo n.º 1
0
        public DTE_Commands GetCommands()
        {
            EnvDTE.Commands xx   = mDte2.Commands;
            DTE_Commands    cmds = new DTE_Commands(this, xx);

            return(cmds);
        }
Ejemplo n.º 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());
            }
        }