public IniWriteValue ( string Section, string Key, string Value ) : void | ||
Section | string | |
Key | string | |
Value | string | |
return | void |
void SaveConfig() { ini.IniWriteInt("Options", "removelog", (chkRemove.Checked?1:0)); ini.IniWriteInt("Options", "single_table", (chkSingleTable.Checked ? 1 : 0)); ini.IniWriteInt("Options", "sources", cmbSources.SelectedIndex); ini.IniWriteInt("Options", "one_hit_per_player", (chkOneHitPerPlayer.Checked?1:0)); ini.IniWriteInt("Options", "load_on_update", (chkLoadOnUpdate.Checked ? 1 : 0)); ini.IniWriteInt("Options", "useblacklist", (chkBlacklist.Checked ? 1 : 0)); ini.IniWriteInt("Options", "blacklistcolour", cmbBlacklistColor.SelectedIndex); ini.IniWriteInt("Options", "keeplatestlog", (chkLogDeletionKeepLatest.Checked?1:0)); ini.IniWriteInt("Options", "movelogs", (chkMoveLogs.Checked ? 1 : 0)); ini.IniWriteValue("Options", "movepath", txtLogMovePath.Text); ini.IniWriteInt("Options", "tablefont", cmbFont.SelectedIndex); // filters ini.IniWriteInt("Filters", "alts", (chkAlts.Checked ? 1 : 0)); ini.IniWriteInt("Filters", "alt_based_on_name", (chkAltBasedOnName.Checked ? 1 : 0)); ini.IniWriteInt("Filters", "aggressive_ip_matching", (chkAggressiveIpMatching.Checked ? 1 : 0)); ini.IniWriteInt("Filters", "town", (chkInTown.Checked ? 1 : 0)); ini.IniWriteInt("Filters", "base", (chkInBase.Checked ? 1 : 0)); ini.IniWriteInt("Filters", "tent", (chkInTent.Checked ? 1 : 0)); ini.IniWriteInt("Filters", "encounter", (chkInEncounter.Checked ? 1 : 0)); ini.IniWriteInt("Filters", "cond", (chkFilterCond.Checked ? 1 : 0)); ini.IniWriteInt("Filters", "netstate", (chkFilterNetstate.Checked ? 1 : 0)); ini.IniWriteInt("Filters", "condidx", cmbCond.SelectedIndex); ini.IniWriteInt("Filters", "netstateidx", cmbNetState.SelectedIndex); ini.IniWriteInt("Filters", "rawfilter", (chkRawId.Checked ? 1 : 0)); ini.IniWriteInt("Filters", "rawfilterid", Decimal.ToInt32(numMapFilter.Value)); ini.IniWriteInt("Filters", "ip", (chkFilterIp.Checked?1:0)); ini.IniWriteValue("Filters", "ipstring", txtIp.Text); // window ini.IniWriteInt("Window", "x", this.Location.X); ini.IniWriteInt("Window", "y", this.Location.Y); ini.IniWriteInt("Window", "width", this.Size.Width); ini.IniWriteInt("Window", "height", this.Size.Height); ini.IniWriteInt("Window", "splitterpos", splitContainer1.SplitterDistance); }
public static void SerializeTextBox(string section, string key, TextBox box) { ini.IniWriteValue(section, key, box.Text); }