public void OnRemoveAllEventHandlers(IEvent e) { if (_eventPath.SelectedLinkLine != null) { EventPortOut po = _eventPath.SelectedLinkLine.StartNode as EventPortOut; if (po != null) { if (e.IsSameObjectRef(po.Event)) { listBoxActions.Items.Clear(); _eventPath.ClearLineSelection(); } } } else if (_eventPath.SelectedEvent != null) { if (e.IsSameObjectRef(_eventPath.SelectedEvent.Event)) { listBoxActions.Items.Clear(); _eventPath.ClearEventIconSelection(); } } _eventPath.OnRemoveAllEventHandlers(e); }