Testing the Customer Orders Window - C#
Now that you have many of the basic features set up, you can run the Customer Orders window and try editing, adding, saving, and deleting records.
For example, if you run the window, and get all orders for the customer PICCO, you can go to the Properties tab, change one of the order header fields, then click the Save button. You can then go back to the List tab, call up the records for PICCO again and see that your changes have been saved.
Testing Business Rules
To test the verification and display of business rules, edit an order and on the Properties tab, clear the Customer and Name text boxes, set one of the order detail quantities to zero and then click Save. You should first see a dialog listing all the broken rules, then when you close the dialog, you should see a red highlight around all controls associated with the broken rules. If you hover your mouse pointer over a highlighted text box, it displays the associated error message. For example:
For additional options for displaying broken rules, see the Help topic Displaying Broken Rules and Warnings in WPF.
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 04/19/18
Comment or report problem with topic
