IniWriteInt() public method

public IniWriteInt ( string Section, string Key, int Value ) : void
Section string
Key string
Value int
return void
Esempio n. 1
0
 public static void SerializeCmb(string section, string key, ComboBox box)
 {
     ini.IniWriteInt(section, key, box.SelectedIndex);
 }
Esempio n. 2
0
        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);
        }