Creating Components objects and C# objects