Hi maxflax,
please post here both the code of the c# program and of the widget (html and json files).
You also need to instruct the widget json file about what field to update from your c# app module to the widget html UI elemets (binding/mapping).
Cheers,
g.