Move event and enum handling checks to their generation methods.
Move event and enum handling checks to their generation methods.

ddobrev/CppSharp,mono/CppSharp,inordertotest/CppSharp,mohtamohit/CppSharp,mono/CppSharp,ktopouzi/CppSharp,ktopouzi/CppSharp,inordertotest/CppSharp,u255436/CppSharp,u255436/CppSharp,inordertotest/CppSharp,ddobrev/CppSharp,genuinelucifer/CppSharp,ktopouzi/CppSharp,ddobrev/CppSharp,ddobrev/CppSharp,zillemarco/CppSharp,mono/CppSharp,zillemarco/CppSharp,inordertotest/CppSharp,genuinelucifer/CppSharp,zillemarco/CppSharp,mohtamohit/CppSharp,mohtamohit/CppSharp,u255436/CppSharp,mohtamohit/CppSharp,u255436/CppSharp,ktopouzi/CppSharp,genuinelucifer/CppSharp,inordertotest/CppSharp,zillemarco/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,ktopouzi/CppSharp,mono/CppSharp,mohtamohit/CppSharp,genuinelucifer/CppSharp,genuinelucifer/CppSharp,mono/CppSharp,u255436/CppSharp,mono/CppSharp