/// <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(); }
// ------------------------------------------------------- // 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); }
// ------------------------------------------------------- // 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); }
/// <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(); }