Beispiel #1
0
        /// <summary>
        /// Save the xml
        /// </summary>
        public static void SaveXml()
        {
            XmlProvider xml = new XmlProvider(
                _common_app_data_configfile,
                OpenMode.ForWriting
                );

            xml.ChangeValueInSecondLevel("connectionString", _cn);
            xml.ChangeValueInSecondLevel("checkForNewVersion", _checkForNewVersion.ToString());

            //xml.CloseFile();
        }
Beispiel #2
0
        // -------------------------------------------------------
        // PUBLIC MEMBERS
        // -------------------------------------------------------

        /// <summary>
        /// Save the connection string to the configuration file
        /// </summary>
        /// <param name="connectionString"></param>
        public void SaveConnectionString(string connectionString)
        {
            this._cn = connectionString;

            XmlProvider xml = new XmlProvider(
                this._common_app_data_configfile,
                OpenMode.ForWriting
                );

            xml.ChangeValueInSecondLevel("connectionString", this._cn);
        }
Beispiel #3
0
        // -------------------------------------------------------
        // PUBLIC MEMBERS
        // -------------------------------------------------------
        /// <summary>
        /// Save the connection string to the configuration file
        /// </summary>
        /// <param name="connectionString"></param>
        public void SaveConnectionString(string connectionString)
        {
            this._cn = connectionString;

            XmlProvider xml = new XmlProvider(
                this._common_app_data_configfile,
                OpenMode.ForWriting
            );

            xml.ChangeValueInSecondLevel("connectionString", this._cn);
        }
Beispiel #4
0
        /// <summary>
        /// Save the xml
        /// </summary>
        public static void SaveXml()
        {
            XmlProvider xml = new XmlProvider(
                _common_app_data_configfile,
                OpenMode.ForWriting
            );

            xml.ChangeValueInSecondLevel("connectionString", _cn);
            xml.ChangeValueInSecondLevel("checkForNewVersion", _checkForNewVersion.ToString());

            //xml.CloseFile();
        }