The follow example describe a solution with C#
You can download the complete example from here: Download