|
XML support in the DBI
Controls for .NET |
|
|
|
All of the controls in
Calendar Tools 2.0 for .NET have the ability to read and write their
properties describing the formatting of the control in the form of an XML
file or string. Additionally, each control has the ability to read and
write the data in their collections (such as appointments, contacts, etc.)
to and from XML. This functionality makes it easy for developers to share
control styles and data between instances of the controls and other
applications.
|
|
|
|
XML Strings |
|
In instances where security
(file create, file write, etc.) makes reading and writing of XML as a file an
issue, DBI Technologies has implemented XML read and write to strings, thereby
removing the need to create physical files containing the data. |
|
|
| Read and Write at Design Time |
|
XML read and write is
available at design time through the property inspector. This design time
support for XML is ideal for creating style files to be shared between
developers. Design time support of XML styles makes it easy to remove
instances of a control and create new instances with the same formatting
without having to reset all the properties from scratch, including
implementation of new versions of a control. |
|
|
| Write Many, Read Once |
In each control,
there is a generic WriteXML and WriteString method to persist all of the
formatting and collection data in the control. There are also separate
WriteXML and WriteString methods on each of the collections used in the
control. When a write method is invoked the data created will contain
the proper header identifying the type of data in the XML string. This
header is used by the
ReadXMLFile method or
XMLString property of the
control to identify the type of data and load it appropriately.
|
| |