The XmlPhoneBook sample application demonstrates how to load and save DataSets in XML format. The XML can be stored on the local file system or through a stream associated with an IrDAClient. There is a C# and VB version of XmlPhoneBook in the folder \SampleApplications\Chapter8.
When the XmlPhoneBook application launches, the screen shows a DataGrid and a series of buttons. The DataGrid shows the contents of a DataSet maintained by the application. To set up a brand new DataSet, follow these steps:
Click the New PhoneBook button. The application responds by creating a new DataSet, but there are no records loaded.
Create a random record and insert it into the DataSet by clicking the Add Random ...