Well, you're calling dispose as if it were a static method of MainScreen but there is no such method, is it? At least I cannot see you put one there.

There is a dispose method inherited over...