In the CustomizedCode folder, you can add new classes to customize a controller.
This is an example of the FormCreateCustomerController code
/// <summary> /// The Base class of FormCreateCustomerController /// </summary> internal abstract class FormCreateCustomerControllerBase : ControllerBase { public FormCreateCustomerControllerBase(IFormPart form) : base(form) { } // button (Submit) click event handler internal virtual void SubmitButton_Handler(FormsManagerDataObject dataObject) { // Generated code } } /// <summary> /// The Controller class of Form FormCreateCustomer /// </summary> internal partial class FormCreateCustomerController : FormCreateCustomerControllerBase { public FormCreateCustomerController(IFormPart form) : base(form) { } }
The following code example and illustration describe a partial class where you can override the virtual methods defined in FormCreateCustomerControllerBase and provide your own business logic.
internal partial class FormCreateCustomerController { internal override void SubmitButton_Handler(Sybase.UnwiredPlatform.Windows.Forms.FormsManagerDataObject dataObject) { // Add your custom actions here MessageBox.Show("Before Submit!"); // Perform the default action base.SubmitButton_Handler(dataObject); } }