Windows form to component: Possible?

Hello
This is a simple example of windows form, i want to know how to convert it to ghpy component

winform to component.gh (3.3 KB)

Hello
Any help with this?