LED notification in windows mobile

I have windows mobile device Motorola MC9190. In which there is a built in scanner. I have to light the led based on scanning result. That is if material scanned is valid then i have to light green led otherwise red led using c#