Class "Event", "CompareTo" method changed.

Method changed to check type compatibility of parameter with "Event".