예제 #1
0
        public void AddLine(TableConfigOtherInfo info)
        {
            List <ConfigRowData> data = new List <ConfigRowData>();

            foreach (var item in info.fieldInfoDic.Values)
            {
                ConfigRowData d = new ConfigRowData();
                d.fieldName = item.fieldName;
                d.value     = item.defultValue;
                data.Add(d);
            }

            configRowDataList.Add(data);
        }
예제 #2
0
        public void AddRow(string fieldName, object value)
        {
            foreach (var item in configRowDataList)
            {
                bool isHave = false;
                foreach (var r in item)
                {
                    if (r.fieldName == fieldName)
                    {
                        isHave = true;
                        break;
                    }
                }

                if (!isHave)
                {
                    ConfigRowData c = new ConfigRowData();
                    c.fieldName = fieldName;
                    c.value     = value;
                    item.Add(c);
                }
            }
        }