First create classes that have no GUI code in them, but that contain the logic behind your current application. Write it in such a way that these classes could be used in a GUI or a console...