The FormSalesOrderDetail form is used to show a detailed listing of a specific sales order. This form makes use of the TabControl, where the first tab shows the sales order ID, the sales order date, and the customer information. The second tab contains a DataGrid control that lists the line items of the sales order.
Creating FormSalesOrderDetail
Start by adding a new Form to the project. Name the Form file FormSalesOrderDetail.cs. The class contained in the file is automatically named FormSalesOrderDetail.
Set the FormSalesOrderDetails MinimizeBox property to False.
Add a using directive for both the Sybase.UnwiredAccelerator.Windows.Forms and the Sybase.UnwiredAccelerator.Data assemblies to the FormSalesOrderDetails code.
Place an Input Panel control on FormSalesOrderDetails and name the object “sip.” Implement an empty handler function for the EnabledChanged event.
Edit FormSalesOrderDetails so it implements the Sybase.UnwiredAccelerator.Windows.Forms.IStackFormsManagerForm interface. See the sample implementation of this tutorial for the implementation of the IStackFormsManagerForm interface.
Add a handler function for the FormSalesOrderDetails Closing event as shown in the sample implementation of this tutorial.
Place a TabControl, DataGrid, and several Label controls on the form. Organize them as shown in the sample implementation of this tutorial.