public void Save() { if (iniFile != null) { iniFile.WriteString("Settings", "Logo", logoFile); iniFile.WriteString("Settings", "Description", description); iniFile.Save(); } }
protected virtual void SaveConfiguration() { try { MemIniFile iniFile = new MemIniFile(settingFileName); iniFile.Load(); iniFile.WriteInteger("Settings", "Left", Left); iniFile.WriteInteger("Settings", "Top", Top); iniFile.WriteBool("Toy", "Enabled", ToyEnabled); OnSaveSettings(new IniFileAccessArgs(iniFile)); iniFile.Save(); iniFile.Dispose(); } catch { } }
public void Save() { if (iniFile == null) { iniFile = new MemIniFile(FileName); try { iniFile.Load(); iniFile.WriteString("Settings", "Description", Description); iniFile.WriteString("Settings", "Logo", logoFile); iniFile.Save(); } finally { iniFile.Dispose(); } } else { iniFile.WriteString("Settings", "Description", Description); iniFile.WriteString("Settings", "Logo", logoFile); iniFile.Save(); } }