private void InitializeToolbar()
        {
            commandBarButtonEntryAddMenu = new CommandBarButtonEntry(components);
            commandBarButtonEntryAddMenu.CommandIdentifier = commandAddMenu.Identifier;

            commandBarButtonEntryRemoveMenu = new CommandBarButtonEntry(components);
            commandBarButtonEntryRemoveMenu.CommandIdentifier = commandImageRemove.Identifier;

            commandBarLabel      = new CommandBarLabelEntry(components);
            commandBarLabel.Text = Res.Get(StringId.ImgSBEffectsLabel);

            commandBarDefinition = new CommandBarDefinition(components);
            commandBarDefinition.RightCommandBarEntries.Add(commandBarButtonEntryAddMenu);
            commandBarDefinition.RightCommandBarEntries.Add(commandBarButtonEntryRemoveMenu);

            commandBarDefinition.LeftCommandBarEntries.Add(commandBarLabel);

            commandBarLightweightControl = new ImageDecoratorsCommandBarLightweightControl(components);
            commandBarLightweightControl.LightweightControlContainerControl = this;

            commandAddMenu.CommandBarButtonContextMenuDefinition = addCommandContextMenuDefinition;

            commandBarLightweightControl.CommandManager       = _decoratorsManager.CommandManager;
            commandBarLightweightControl.CommandBarDefinition = commandBarDefinition;

            InitFocusAndAccessibility();
        }
        private void InitializeToolbar()
        {
            commandBarButtonEntryAddMenu = new CommandBarButtonEntry(components);
            commandBarButtonEntryAddMenu.CommandIdentifier = commandAddMenu.Identifier;

            commandBarButtonEntryRemoveMenu = new CommandBarButtonEntry(components);
            commandBarButtonEntryRemoveMenu.CommandIdentifier = commandImageRemove.Identifier;

            commandBarLabel = new CommandBarLabelEntry(components);
            commandBarLabel.Text = Res.Get(StringId.ImgSBEffectsLabel);

            commandBarDefinition = new CommandBarDefinition(components);
            commandBarDefinition.RightCommandBarEntries.Add(commandBarButtonEntryAddMenu);
            commandBarDefinition.RightCommandBarEntries.Add(commandBarButtonEntryRemoveMenu);

            commandBarDefinition.LeftCommandBarEntries.Add(commandBarLabel);

            commandBarLightweightControl = new ImageDecoratorsCommandBarLightweightControl(components);
            commandBarLightweightControl.LightweightControlContainerControl = this;

            commandAddMenu.CommandBarButtonContextMenuDefinition = addCommandContextMenuDefinition;

            commandBarLightweightControl.CommandManager = _decoratorsManager.CommandManager;
            commandBarLightweightControl.CommandBarDefinition = commandBarDefinition;

            InitFocusAndAccessibility();
        }