>Can't see why that would be happening. What exactly are you seeing ?
The same code is used when entering the form, in the related method, and in the save method when saving. In the save method, a direct reference to the class name would simply make the application to crash. Then, without changing any code, a minute later, when entering the form, I have an error about a runtime such as "No default member found for type 'RuntimeType'.". In overall, this is not safe as I believe we should always establish object reference to a class and negotiate with that instead of using a method name directly like that.