public ListViewHeaderItemProvider (ListViewHeaderProvider headerProvider, SWF.ColumnHeader columnHeader) : base (columnHeader) { this.headerProvider = headerProvider; this.columnHeader = columnHeader; }
private void UpdateChildrenStructure (bool forceUpdate) { bool updateView = lastView != listView.View; if (updateView == true || forceUpdate == true) { foreach (ListViewGroupProvider groupProvider in groups.Values) { RemoveChildProvider (groupProvider); groupProvider.Terminate (); } groups.Clear (); if (lastView == SWF.View.Details && header != null) { RemoveChildProvider (header); header.Terminate (); header = null; } foreach (ListItemProvider itemProvider in Items) RemoveChildProvider (itemProvider); ClearItemsList (); } if (listView.View == SWF.View.Details) { if (header == null) { header = new ListViewHeaderProvider (listView); header.Initialize (); AddChildProvider (updateView || forceUpdate, header); } } foreach (object objectItem in listView.Items) InitializeProviderFrom (objectItem); }