You have no access to the content of the internal Nevron Diagram dialogs. If your requirements have grown to a point at which you want to modify the Layout Dialog itself it will be best to create a dialog of your own. In this way you will be able to implement exactly the features you require.
Best Regards,Nevron Support Team
Hi,
To execute only a specific command from the command bars manager, you can use the following code:
NDiagramCommandCollection commands = manager.Commander.Commands;
NDiagramButtonCommand command = (NDiagramButtonCommand)commands.GetCommandFromId((int)DiagramCommand.ShowLayoutDialog);
command.Execute();
Please, note that you should have previously created and attached a command bars manager to the drawing view like this:
manager = new NDiagramCommandBarsManager();
manager.View = m_View;
In this way, when you do not set the parent of the diagram command bars manager to be the current Windows form, the menus and the toolbars will not be shown and you will get exactly the functionality you require.
Hi Iryna,
You can easily add all the diagram commands you see in the Diagram Designer to your form using the following code in your form's Load event handler:
NDiagramCommandBarsManager manager = new NDiagramCommandBarsManager();
manager.View = nDrawingView1;
manager.ParentControl = this;