private void SetValue <T>(string key, T value, ref T oldValue, string section) { if (!value.Equals(oldValue)) { string stringValue = System.Convert.ToString(value, CultureInfo.InvariantCulture); if (!this.offline) { HS.SaveINISetting(section, key, stringValue, FileName); } oldValue = value; } }
private void CreateInifileTemplate() { _hs.SaveINISetting(UserSection, MelcloudUserName, "InsertUsername", InifileName); _hs.SaveINISetting(UserSection, MelcloudPassword, "InsertPassword", InifileName); }