Hi,
The NDiagramCommandBarsManager rebuilds the toolbars it contains in its constructor. That is why when you run the program the command bars will be reset. You can either hide the toolbars after the manager is created, or override the command bars builder.
Take a look at the following example:
Visual Interface Components - Command Bars