Problem to get the status of an LED (Fez Panda C #)

Currently class STI2D end, I realize a project.
My project is to vary the brightness of an LED using the touch screen Fez Touch. Then I have to see the status of the LED on an HTML page.
Everything works fine, the connection between the PC and the card works.
But I have a problem I can not seem to get the state of the LED.
I’ve put my program in image below,
If you could help me, it would be very helpful.
Thank you in advance, good day :slight_smile:

See my reply the first time you have asked this question:

Please, don’t pollute the forum.

*edite: moved to the thread in the link