Friends,
I have really not used the close event of the Dockable window, instead I have used the OnUpdate method in to check the DockableWindow visibility to do necessary actions.
Snippet as below
protected override void OnUpdate()
{
Enabled = ArcMap.Application != null;
if (!_dockWindow.IsVisible() && !_toRollBack)
RollBackActiveView()}
_toRollBack is a bool variable to avoid infinite loop during execution.
Do not forget to set the BOOL variable to false where ever you make the DockableWindow visible.
would be interested to understand few discussions? ? ?
I have really not used the close event of the Dockable window, instead I have used the OnUpdate method in to check the DockableWindow visibility to do necessary actions.
Snippet as below
protected override void OnUpdate()
{
Enabled = ArcMap.Application != null;
if (!_dockWindow.IsVisible() && !_toRollBack)
RollBackActiveView()}
_toRollBack is a bool variable to avoid infinite loop during execution.
Do not forget to set the BOOL variable to false where ever you make the DockableWindow visible.
would be interested to understand few discussions? ? ?
Cheers Happy Coding :)
No comments:
Post a Comment