Hi,
First let me describe our application:
We have a MainGUI Window with a treeviewer. Whenever the user double-clicks an tree item, a dialog is opened containing the relevant data for that item.
The Dialog is implemented as singleton with several tabs and remains open until the user explicitly closes it. So a refreshing mechanism has to update the data for every tab when the selected item changes.
(Plus the count of tabs is not constant for every item.)
Due to the fact, that for some items a certain tab has to be shown and for other items a certain tab is not needed, we are doing a check, every time the item changes.
If tab is needed that is actually disposed we're creating it, otherwise we're disposing the tab.
Is there a better approach to archieve that ?
How can we keep the order of our tabs ( if for example the 2nd tab is disposed and then created again, how do we archieve that the tab is displayed as second ) ?
Any help would be appreciated.
Thanks in advance!