Can't translate this javascript code into C#, can someone help me?

difficult to see the code… can you add these code tags

try this tutorial also: