void OnOk()
Virtual function that will be called when the OK button on the physical window is pressed. By default, checks and updates the form values, closes and deletes the frame or dialog, then deletes the view.