private static bool LoadStrengthen(Dictionary<int, StrengthenInfo> strengthen, Dictionary<int, StrengthenInfo> RefineryStrengthen) { using (ProduceBussiness db = new ProduceBussiness()) { StrengthenInfo[] infos = db.GetAllStrengthen(); StrengthenInfo[] Refineryinfos = db.GetAllRefineryStrengthen(); StrengthenGoodsInfo[] StrengthGoodInfos = db.GetAllStrengthenGoodsInfo(); foreach (StrengthenInfo info in infos) { if (!strengthen.ContainsKey(info.StrengthenLevel)) { strengthen.Add(info.StrengthenLevel, info); } } foreach (StrengthenInfo info in Refineryinfos) { if (!RefineryStrengthen.ContainsKey(info.StrengthenLevel)) { RefineryStrengthen.Add(info.StrengthenLevel, info); } } foreach (StrengthenGoodsInfo info in StrengthGoodInfos) { if (!Strengthens_Goods.ContainsKey(info.ID)) { Strengthens_Goods.Add(info.ID, info); } } } return true; }