コード例 #1
0
 private void LoadCfg(String CfgName)
 {
     WowControl.LoadCfgFromFile(CfgName);
     FillListbox();
     checkBox8.Checked                 = WowControl.LoadVariableBool("FarmHonor");
     checkBox6.Checked                 = WowControl.LoadVariableBool("FarmMining");
     checkBox5.Checked                 = WowControl.LoadVariableBool("FarmSkinning");
     checkBox7.Checked                 = WowControl.LoadVariableBool("WPWrite");
     checkBox1.Checked                 = WowControl.LoadVariableBool("Autoreconnect");
     comboBox3.SelectedIndex           = WowControl.LoadVariableInt("CharNo");
     comboBox2.SelectedIndex           = WowControl.LoadVariableInt("RealmNo");
     comboBox8.SelectedIndex           = WowControl.LoadVariableInt("ClassType");
     textBox1.Text                     = WowControl.LoadVariableString("Account");
     WowControl.MinPlayersInGroup      = WowControl.LoadVariableInt("MinPlayersInGroup");
     WowControl.FriendCheckRange       = WowControl.LoadVariableInt("CheckRange");
     WowControl.EnemyCheckRange        = WowControl.LoadVariableInt("EnemyCheckRange");
     WowControl.HealDDPriority         = WowControl.LoadVariableInt("HealDDPriority");
     WowControl.GroupRange             = WowControl.LoadVariableInt("GroupRange");
     WowControl.RangeFromPlayerToGroup = WowControl.LoadVariableInt("RangeFromPlayerToGroup");
     WowControl.StayWithGroup          = WowControl.LoadVariableBool("StayWithGroup");
     WowControl.LootMobs               = WowControl.LoadVariableBool("LootMobs");
     WowControl.FarmMount              = WowControl.LoadVariableInt("FarmMount");
     WowControl.SkiningKillAll         = WowControl.LoadVariableBool("SkiningKillAll");
     WowControl.SkiningRange           = WowControl.LoadVariableInt("SkiningRange");
     WowControl.SkinAll                = WowControl.LoadVariableBool("SkinAll");
     WowControl.UpdateStatus("Config " + comboBox1.Text + " loaded!");
 }