A SharePoint workflow can be associated with a list, and configured to 'start when a new item is created', 'when an item is changed' or 'manually started by an authenticated user'.
This is my screenshot: http://i.stack.imgur.com/8SIer.png
I need a way of detecting which of these caused the workflow to start in each case. I'm sure there must be some variable which holds which of the above triggered the start of the worklow...
NOTE: I'm developing a SP2010 workflow in C# using Visual Studio.