The FormEditSalesOrderItem form is used to enter a new sales order. This form makes use a ComboBox for selecting a product and a TextBox for entering a quantity. There is also a MainMenu control that has MenuItem entries that serve as OK and Cancel buttons to either save the line item to the sales order or cancel the line item entry.
Creating FormEditSalesOrderItem
Add a new Form to the project and name the Form file FormEditSalesOrderItem.cs. The class contained in the file is automatically named FormEditSalesOrderItem.
Set the FormEditSalesOrderItem MinimizeBox property to False.
Add a using directive for both the Sybase.UnwiredAccelerator.Windows.Forms and the Sybase.UnwiredAccelerator.Data assemblies to the FormEditSalesOrderItem code.
Place an Input Panel control on FormEditSalesOrderItem and name the object “sip.” Implement an empty handler function for the EnabledChanged event.
Edit FormEditSalesOrderItem 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 FormEditSalesOrderItem Closing event as shown in the sample implementation of this tutorial
Now place a ComboBox, TextBox, and a couple of Labels on the form and organize them as shown in the sample implementation of this tutorial.