A few visual C# peaces of code