c# dynamically draw sin curve