コード例 #1
0
        protected void InitializeCommands()
        {
            CommandManager cm = ((ICommandManagerHost)_contentEditorSite).CommandManager;

            commandVideoWebPreview          = new VideoWebPreviewCommand();
            commandVideoWebPreview.Execute += VideoWebPreview_Execute;
            cm.Add(commandVideoWebPreview);

            commandVideoWidescreenAspectRatio          = new Command(CommandId.VideoWidescreenAspectRatio);
            commandVideoWidescreenAspectRatio.Execute += VideoAspectRatio_Execute;
            commandVideoWidescreenAspectRatio.Tag      = VideoAspectRatioType.Widescreen;
            cm.Add(commandVideoWidescreenAspectRatio);

            commandVideoStandardAspectRatio          = new Command(CommandId.VideoStandardAspectRatio);
            commandVideoStandardAspectRatio.Execute += VideoAspectRatio_Execute;
            commandVideoStandardAspectRatio.Tag      = VideoAspectRatioType.Standard;
            cm.Add(commandVideoStandardAspectRatio);

            InitializeAlignmentMarginCommands(((ICommandManagerHost)_contentEditorSite).CommandManager);
            cm.Add(new GroupCommand(CommandId.FormatVideoGroup, commandVideoWebPreview));
        }
コード例 #2
0
        protected void InitializeCommands()
        {
            CommandManager cm = ((ICommandManagerHost)_contentEditorSite).CommandManager;

            commandVideoWebPreview = new VideoWebPreviewCommand();
            commandVideoWebPreview.Execute += VideoWebPreview_Execute;
            cm.Add(commandVideoWebPreview);

            commandVideoWidescreenAspectRatio = new Command(CommandId.VideoWidescreenAspectRatio);
            commandVideoWidescreenAspectRatio.Execute += VideoAspectRatio_Execute;
            commandVideoWidescreenAspectRatio.Tag = VideoAspectRatioType.Widescreen;
            cm.Add(commandVideoWidescreenAspectRatio);

            commandVideoStandardAspectRatio = new Command(CommandId.VideoStandardAspectRatio);
            commandVideoStandardAspectRatio.Execute += VideoAspectRatio_Execute;
            commandVideoStandardAspectRatio.Tag = VideoAspectRatioType.Standard;
            cm.Add(commandVideoStandardAspectRatio);

            InitializeAlignmentMarginCommands(((ICommandManagerHost)_contentEditorSite).CommandManager);
            cm.Add(new GroupCommand(CommandId.FormatVideoGroup, commandVideoWebPreview));
        }