Hi ginnas k,
The correct way to remove a diagram command from NDiagramCommandBarsManager is by using diagram commander:
NDiagramCommand cmd = nDiagramCommandBarsManager1.Commander.Commands.GetCommandFromId((int)DiagramCommand.About);
nDiagramCommandBarsManager1.Commander.Commands.Remove(cmd);
nDiagramCommandBarsManager1.Recreate();
To add the removed command you can either add the previously removed cashed command or create a new one:
If we have a reference to the removed command we just need to add it to the Commander.Commands collection:
nDiagramCommandBarsManager1.Commander.Commands.Add(cmd);
If we don't just create a new one and add it to Commands collection:
NAboutCommand cmd = new NAboutCommand();
nDiagramCommandBarsManager1.Commander.Commands.Add(cmd);
Best Regards,
Nevron Support Team