public InfoDataSource() { /// /// This call is required by the Windows.Forms Designer. /// InitializeComponent(); _MasterColumns = new ColumnItems(this, typeof(ColumnItem)); _DetailColumns = new ColumnItems(this, typeof(ColumnItem)); // // TODO: Add any constructor code after InitializeComponent call // }
private void SetColumns(ColumnItems aColumnItems, TFieldAttrItems FieldAttrItems, Boolean ParentField) { aColumnItems.Clear(); for (int num1 = 0; num1 < FieldAttrItems.Count; num1++) { TFieldAttrItem item2 = FieldAttrItems[num1] as TFieldAttrItem; if (item2.ParentRelationField != null && item2.ParentRelationField != "") { ColumnItem item1 = new ColumnItem(); if (ParentField) { item1.FieldName = item2.ParentRelationField; item1.Name = item2.ParentRelationField; } else { item1.FieldName = item2.DataField; item1.Name = item2.DataField; } aColumnItems.Add(item1); } } }
public InfoDataSource(System.ComponentModel.IContainer container) { /// /// Required for Windows.Forms Class Composition Designer support /// container.Add(this); InitializeComponent(); _MasterColumns = new ColumnItems(this, typeof(ColumnItem)); _DetailColumns = new ColumnItems(this, typeof(ColumnItem)); // // TODO: Add any constructor code after InitializeComponent call // }