Пример #1
0
 private static bool LoadProps(Dictionary<int, ItemTemplateInfo> allProp)
 {
     using (ProduceBussiness db = new ProduceBussiness())
     {
         ItemTemplateInfo[] list = db.GetSingleCategory(10);
         foreach (ItemTemplateInfo p in list)
         {
             allProp.Add(p.TemplateID, p);
         }
     }
     return true;
 }