Separated winforms stuff from core client code