Common C# utilities and UI components