You mean processing like:

"If the OK button was click then check the RadioButtons - if RadioButton1 was click then do this, else if RadioButton2 was clicked then do something else..."

Kinda like that ?