public bool Equals(IXamlEventInfo other) => (other as SreEvent)?.Event.Equals(Event) == true;
public bool Equals(IXamlEventInfo other) => other is CecilEvent cp && cp.Event == Event;