Click here to Skip to main content
15,884,388 members
Articles / Programming Languages / XML

Binding any object data members at design time

Rate me:
Please Sign up or sign in to vote.
4.00/5 (5 votes)
8 Nov 20045 min read 40.7K   16  
Enables binding of any public data member of any object into a control at design time.
<?xml version="1.0"?>
<doc>
    <assembly>
        <name>AgConfig</name>
    </assembly>
    <members>
        <member name="T:AG1206.AgConfig">
            <summary>
            Simple object XML serializing and support for binding object instance members 
            directly to data bound contorls, with automatic reflection of changes made to 
            data bound controls to corresponding instance members.
            </summary>
        </member>
        <member name="M:AG1206.AgConfig.#ctor">
            <summary>
            Initializes a new instance.
            </summary>
        </member>
        <member name="M:AG1206.AgConfig.#ctor(System.Object)">
            <summary>
            Initializes a new instance, and specifies the Data object and DataSet.
            </summary>
            <param name="data">The data object to use</param>
        </member>
        <member name="F:AG1206.AgConfig.XmlExtraTypes">
            <summary>
            A Type array of additional object types to serialize.
            </summary>
        </member>
        <member name="M:AG1206.AgConfig.WriteToXmlFile">
            <summary>
            Serializes Data into XML file.
            </summary>
        </member>
        <member name="M:AG1206.AgConfig.WriteToXmlFile(System.String)">
            <summary>
            Serializes Data into XML file, and specifies file to use.
            </summary>
            <param name="file">File to use</param>
        </member>
        <member name="M:AG1206.AgConfig.ReadFromXmlFile">
            <summary>
            Deserializes Data from XML file.
            </summary>
        </member>
        <member name="M:AG1206.AgConfig.ReadFromXmlFile(System.String)">
            <summary>
            Deserializes Data from XML file, and specifies file to use.
            </summary>
            <param name="file">File to use</param>
        </member>
        <member name="M:AG1206.AgConfig.ReadFromXmlStream(System.IO.Stream)">
            <summary>
            Deserializes Data from stream, and specifies stream to use.
            </summary>
            <param name="s">Stream to use</param>
        </member>
        <member name="M:AG1206.AgConfig.WriteToXmlStream(System.IO.Stream)">
            <summary>
            Serializes Data to stream, and specifies stream to use.
            </summary>
            <param name="s">Stream to use</param>
        </member>
        <member name="M:AG1206.AgConfig.WriteToDataSet">
            <summary>
            Serializes Data into DataSet.
            </summary>
        </member>
        <member name="M:AG1206.AgConfig.WriteToDataSet(System.Data.DataSet)">
            <summary>
            Serializes Data into DataSet, and specifies DataSet to use.
            </summary>
            <param name="ds">DataSet to use</param>
        </member>
        <member name="M:AG1206.AgConfig.ReadFromDataSet(System.Data.DataSet)">
            <summary>
            Deserializes Data from DataSet, and specifies DataSet to use.
            </summary>
            <param name="ds">DataSet to use</param>
        </member>
        <member name="M:AG1206.AgConfig.WriteSchemaToFile">
            <summary>
            Writes XML schema into file.
            </summary>
            <remarks>
            The target file is FileName with an extension ".xsd".
            </remarks>
        </member>
        <member name="M:AG1206.AgConfig.WriteSchemaToFile(System.String)">
            <summary>
            Writes XML schema into file, and specifies file to use.
            </summary>
            <remarks>
            The target file always has an extension ".xsd".
            </remarks>
            <param name="file">File to use</param>
        </member>
        <member name="P:AG1206.AgConfig.FileName">
            <summary>
            Gets or stets the XML file for serialization.
            </summary>
            <remarks>
            By default, this is a file located in the application startup directory with 
            the same name as the Data object and with the extension ".xml".
            </remarks>
        </member>
        <member name="P:AG1206.AgConfig.DataSet">
            <summary>
            Gets or stets a DataSet associated with this instance.
            </summary>
            <remarks>
            DataSet can be used for binding Data members directly to data bound controls.
            When the contents of a data bound control is changed, the change is 
            automatically reflected to the corresponding instance member.
            </remarks>
        </member>
        <member name="P:AG1206.AgConfig.XmlRootName">
            <summary>
            Gets or sets the name of the root XML elemtnt for serialization.
            </summary>
            <remarks>
            By default, this is the same as the nama of Data object.
            </remarks>
        </member>
        <member name="P:AG1206.AgConfig.XmlNamespace">
            <summary>
            Gets or sets the XML namespace for serialization.
            </summary>
            <remarks>
            By default, this is in the form "Application name"."Data object name".
            </remarks>
        </member>
        <member name="P:AG1206.AgConfig.Data">
            <summary>
            Data object
            </summary>
        </member>
        <member name="T:AG1206.AgConfig.DataWrapper">
            <summary>
            Internal wrapper class. Must have public access.
            </summary>
        </member>
        <member name="F:AG1206.AgConfig.DataWrapper.Root">
            <summary>
            Internal wrapper member.
            </summary>
        </member>
    </members>
</doc>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
Slovakia Slovakia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions