Recording demo source code C#