Is it possible to switch panels after registering? To clarify a little:
I have a few different panels for different commands. Lets say for now three:
General panel visible after loading the plugin:
public partial class Panel1 : UserControl
Panel to be used after calling command2
public partial class Panel2 : UserControl
Panel to be used after calling command3
public partial class Panel3 : UserControl
I want to register only one panel in the plugin:
System.Type panelType = typeof(Panel1); Rhino.UI.Panels.RegisterPanel(this, panelType, "MyPlugin", System.Drawing.SystemIcons.Question);
Then I would like to change panelType=typeof(Panel1) to panelType=typeof(Panel2) when command2 is called. So instead of Panel1 Panel2 will be visible in the same docked tab. Only one panel is displayed at once.
And of course similar for Panel3 and command3 etc.
OpenPanelAsSibling does not work for me as it will make me add like ten panels which will be a mess. And I want the user to be able to open only Panel1 without using commands provided by me.