C#, WindowsForms difference to simple Console App
Posted
by daemonfire300
on Stack Overflow
See other posts from Stack Overflow
or by daemonfire300
Published on 2010-05-05T15:56:46Z
Indexed on
2010/05/05
15:58 UTC
Read the original article
Hit count: 305
Hi there,
I currently started to "port" my console projects to WinForms, but it seems I am badly failing doing that.
I am simply used to a console structure:
I got my classes interacting with each other depending on the input coming from the console. A simple flow:
Input -> ProcessInput -> Execute -> Output -> wait for input
Now I got this big Form1.cs (etc.) and the "Application.Run(Form1);" But I really got no clue how my classes can interact with the form and create a flow like I described above.
I mean, I just have these "...._Click(object sender....)" for each "item" inside the form. Now I do not know where to place / start my flow / loop, and how my classes can interact with the form.
thanks and regards daemonfire
© Stack Overflow or respective owner