At least it compiles...
Original ugly CSharp file uploaded
Isolate this sh... not shiny code