/// <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); }); }
/// <summary> /// 删除字段 /// </summary> /// <param name="f"></param> public void RemoveField(Field f) { int index = fields.IndexOf(f); fields.RemoveAt(index); }
/// <summary> /// 添加字段 /// </summary> /// <param name="f"></param> public void AddField(Field f) { fields.Add(f); }