WinForms – how to separate logic?

Hello everyone! I’m making winform app and main .cs file grows up, so I stopped and decided to separate all logic.

So it’s possible to do next things while using my app:

1) make screenshot

2) make screen snippet

3) minimize app to tray and back to normal size

4) set custom hotkeys for both actions (make screenshot and make snippet) + textbox input validation to avoid identical hotkeys **

5) save screenshot to clipboard after it’s done (checkbox) **

6) open screenshots folder

How can I separate all these logic? I think I have to put #1 and #2 in separate class, keep #3, #5, #6 in original class, #4 in separate class

** – I use WinForms Settings with this logic

submitted by /u/Tarasovych
[link] [comments]

Leave a Reply