Example #1
0
 public ToggleToolBarCommand
 (
     string featureId,
     WorkstationContainer container,
     Custom3DToolbar toolbar3D
 )
     : base(featureId, container)
 {
     CustomToolStrip = toolbar3D;
 }
Example #2
0
        protected override void RegisterExampleCommands(WorkstationContainer viewerContainer)
        {
            Custom3DToolbar      toolStrip3D;
            ToggleToolBarCommand toggleToolBar;


            toolStrip3D   = new Custom3DToolbar( );
            toggleToolBar = new ToggleToolBarCommand(CustomWorkstationFeatures.ToggleToolBarFeatureId,
                                                     viewerContainer,
                                                     toolStrip3D);

            toolStrip3D.Renderer = viewerContainer.State.ActiveWorkstation.ToolBarRenderer;

            toolStrip3D.SyncronizeToolbar(viewerContainer.State);

            viewerContainer.FeaturesFactory.RegisterCommand(CustomWorkstationFeatures.ToggleToolBarFeatureId, toggleToolBar);
        }