How do I write out an object in Winforms - C#