How the Sales Documents sample works
The application consists of two classes: The CustomerSalesForm user interface class manages displaying data and selecting records by the user. This class also contains the code to manage tenant access for multitenant installations of Microsoft Dynamics GP. The DataManagement class retrieves data using service methods and makes the data available for display by the user interface class. The DataManagement class also shows how to place the summary list data returned by a method into a dataset. The user interface list and grid controls use the datasets as the source of the data they display.
The application uses basic error handling techniques to detect exceptions and displays all error information in message boxes.