The way to handle this is to override the EnableOKButton() callback method that BlockDialog has. In your override method you simply put any logic in you require to decide if OK and Apply buttons should be active or not and return true or false (true=OK & Apply will be active, false=OK & Apply will not be active).
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX220.127.116.11 MP11 64bit Testing: NX18.104.22.168