it 's true, a single picture speaks thousand words. visual studio has this feature called work flow foundation to prove this in programming. Basically there are two type of work flows in visual studio . i) sequential workflow and ii) state machine workflow.
I'll show you, how to create a simple wwf application, and I start for simple file checking application where first, i check for file either exists or not, after that i check its size and write proper message for UI.
1. create a WWF sequential class library project.

2. add a new item of sequential workflow(code) class. or you can use (XOML) either way.
3. add code activity and ifelse acitivity controls from toolbox and give proper name as below.

4. double click the code activity block and write your code there to control your logic.
5. specify the if else condition using either declarative method or using code or both. I'm using both, below is declarative method.

5. Finally I used it in my windows form application. That's it. How easy it is!!
source code: wwf.zip