/// <summary>
        /// Only applies to FK columns. Populate the list control with all the values from the parent table
        /// </summary>
        /// <param name="listControl">The control to be populated</param>
        protected void PopulateListControl(ListControl listControl)
        {
            Type enumType;

            if (Column is MetaForeignKeyColumn)
            {
                Misc.FillListItemCollection(ForeignKeyColumn.ParentTable, listControl.Items);
            }
            else if (Column.IsEnumType(out enumType))
            {
                Debug.Assert(enumType != null);
                FillEnumListControl(listControl, enumType);
            }
        }
Ejemplo n.º 2
0
 public override void PopulateListControl(ListControl listControl)
 {
     Misc.FillListItemCollection(FilterTable, listControl.Items);
 }