Central piece of code as a cornerstone for a tool

Sometimes, the idea of a tool could gravitate around a very simple piece of code, an enabling mechanism that gives life to a much larger functionality.

That is the case of a simple tool I am writing for my own use. It is an application, based on Windows Presentation Foundation, which help me to upload files from my local hard drive to a number of Windows Sharepoint sites and folders; following my own uploading and publishing patterns.

The whole of the tool goes around this single piece of code: