function Leadtools.Annotations.Automation.AnnAutomationEventArgs()
When this event occurs, the value of Object will be the automation object associated with the current selected object. If no object is selected, then the value of Object will be null.. You can check this value to determine whether to show the context menu for a particular object or for the whole container.