Пример #1
0
 public void InitData()
 {
     for (int i = 0; i < listBuildRuleModel.Count; i++)
     {
         BuildBaseModelBean itemData = listBuildRuleModel[i];
         dicBuildRule.Add(itemData.buildRule, itemData);
     }
 }
Пример #2
0
    /// <summary>
    /// 添加所有规则
    /// </summary>
    public void AddAllRule()
    {
        List <BuildRuleEnum> listData = EnumUtil.GetEnumValue <BuildRuleEnum>();

        for (int i = 0; i < listData.Count; i++)
        {
            BuildRuleEnum      itemRule       = listData[i];
            BuildBaseModelBean buildBaseModel = new BuildBaseModelBean();
            buildBaseModel.buildRule = itemRule;
            listBuildRuleModel.Add(buildBaseModel);
        }
    }