private void 添加字段(string filedname, DevExpress.XtraLayout.LayoutControlItem ControlItem, System.Windows.Forms.Panel panelcrl, System.Windows.Forms.Label labelcrl) { foreach (数据控件组 item in 控件组) { if (item.filedname.Equals(filedname)) { return; } } 数据控件组 数据控件 = new 数据控件组(); ControlItem.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; ControlItem.Text = filedname; 数据控件.LayoutControlItem = ControlItem; 数据控件.panelctrl = panelcrl; 数据控件.labelctrl = labelcrl; 数据控件.filedname = filedname; 控件组.Add(数据控件); }