Exemplo n.º 1
0
        private void AddToolbarToUI()
        {
            CommandBar commandBar  = _commandManager.AddCommandBar("RudeBuild", MsoBarPosition.msoBarTop);
            int        insertIndex = 1;

            _commandManager.AddCommandToCommandBar(commandBar, "BuildProject", insertIndex++, style: MsoButtonStyle.msoButtonIcon);
            _commandManager.AddCommandToCommandBar(commandBar, "BuildSolution", insertIndex++, style: MsoButtonStyle.msoButtonIcon);
            _commandManager.AddCommandToCommandBar(commandBar, "StopBuild", insertIndex++, beginGroup: true, style: MsoButtonStyle.msoButtonIcon);
        }