private void RegisterCommand <T>(IList <MenuCommand> globalList) where T : MenuCommandDesignerBase, new() { var menuCommand = CommandsUtil.CreateCommand <T>(this); globalList.Add(menuCommand); }
private void RegisterCommand <T>(IMenuCommandService menuCommandService) where T : MenuCommandExplorerBase, new() { var menuCommand = CommandsUtil.CreateCommand <T>(this); menuCommandService.AddCommand(menuCommand); }