예제 #1
0
파일: CommandSet.cs 프로젝트: psulek/doemd
        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);
        }