public void LoadFile(Dictionary <int, string> dic, string file) { PairList expr_0B = new PairList(Util.GetUserPath(file)); expr_0B.Load(); foreach (KeyValuePair <string, string> current in expr_0B) { int key = Convert.ToInt32(current.Key, 16); dic[key] = current.Value; } }
public static void Update(Sql sql) { PairList expr_0F = new PairList(Util.GetUserPath("tuner.def")); expr_0F.Load(); sql.Text = "delete from tuner"; sql.Execute(); foreach (KeyValuePair <string, string> current in expr_0F) { new Tuner(current.Key, current.Value).Add(sql); } }