Пример #1
0
        private void RegisterCommand <T>(IList <MenuCommand> globalList) where T : MenuCommandDesignerBase, new()
        {
            var menuCommand = CommandsUtil.CreateCommand <T>(this);

            globalList.Add(menuCommand);
        }
Пример #2
0
        private void RegisterCommand <T>(IMenuCommandService menuCommandService) where T : MenuCommandExplorerBase, new()
        {
            var menuCommand = CommandsUtil.CreateCommand <T>(this);

            menuCommandService.AddCommand(menuCommand);
        }