Use class DialogParameters to "simplify" dialog parameter handling.