C# DLL class for easy message handling