add Event.h Event.cpp
add event fanction
upgrade event function and eventfunction add paintfunction
ignore UserInterfaceState.xcuserstate