Exemple #1
0
 /// <summary>
 /// 安装字段编号顺序添加字段
 /// </summary>
 /// <param name="f"></param>
 public void AddFieldByOrder(Field f)
 {
     fields.Add(f);
     fields.Sort((f1, f2) => {
         return string.Compare(f1.Tag, f2.Tag);
     });
 }
Exemple #2
0
 /// <summary>
 /// 删除字段
 /// </summary>
 /// <param name="f"></param>
 public void RemoveField(Field f)
 {
     int index = fields.IndexOf(f);
     fields.RemoveAt(index);
 }
Exemple #3
0
 /// <summary>
 /// 添加字段
 /// </summary>
 /// <param name="f"></param>
 public void AddField(Field f)
 {
     fields.Add(f);
 }