AnsweredAssumed Answered

Determine Active Dockpane or Unsubscribe

Question asked by dhuantes_dev on Jul 8, 2020
Latest reply on Jul 8, 2020 by dhuantes_dev

I'm going to think about this overnight but I have a situation were I have a map event being fired and being handled by an AddIn that actually is NOT being used but because it's subscribed to a map event at initialization it's handling the event.   Almost like someone butting into a private conversation that they're not a part of... ;-)....   I was thinking about looking at which Dockpane was actually active and if that dockpane isn't active then just ignore the event... But maybe a better solution is to have that AddIn only subscribe to that event when it's appropriate and then unsubscribe otherwise.  Thoughts?