コード例 #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
ファイル: ModelExplorer.cs プロジェクト: psulek/doemd
        private void RegisterCommand <T>(IMenuCommandService menuCommandService) where T : MenuCommandExplorerBase, new()
        {
            var menuCommand = CommandsUtil.CreateCommand <T>(this);

            menuCommandService.AddCommand(menuCommand);
        }