public KGFGUIObjectList(Type theType) { itsListData = new List <KGFITaggable> (); itsItemType = theType; itsData = new KGFDataTable(); itsListFieldCache = new List <KGFObjectListColumnItem> (); CacheTypeMembers(); itsGuiData = new KGFGUIDataTable(itsData); itsGuiData.OnClickRow += OnClickRow; itsGuiData.EventSettingsChanged += new EventHandler(OnGuiDataSettingsChanged); itsGuiData.SetColumnVisible(0, false); for (int i = 0; i < itsListFieldCache.Count; i++) { itsGuiData.SetColumnVisible(i + 1, itsListFieldCache[i].itsDisplay); } itsListViewCategories = new KGFGUISelectionList(); itsListViewCategories.EventItemChanged += OnCategoriesChanged; }
public KGFGUIObjectList (Type theType) { itsListData = new List<KGFITaggable> (); itsItemType = theType; itsData = new KGFDataTable (); itsListFieldCache = new List<KGFObjectListColumnItem> (); CacheTypeMembers (); itsGuiData = new KGFGUIDataTable (itsData); itsGuiData.OnClickRow += OnClickRow; itsGuiData.EventSettingsChanged += new EventHandler(OnGuiDataSettingsChanged); itsGuiData.SetColumnVisible (0, false); for (int i=0;i<itsListFieldCache.Count;i++) { itsGuiData.SetColumnVisible(i+1,itsListFieldCache[i].itsDisplay); } itsListViewCategories = new KGFGUISelectionList (); itsListViewCategories.EventItemChanged += OnCategoriesChanged; }