private void SetPropertyToTextCallbacks(ResourceListView2Column column) { for (int i = 0; i < column.PropIds.Length; i++) { column.SetPropToTextConverter(column.PropIds [i], (PropertyToTextConverter)_propToTextConverters [column.PropIds [i]]); } }
internal SetFoldersForm() { InitializeComponent(); _initialStatuses = new HashMap(); _folderColumn = new ResourceListView2Column(new int[] { Core.Props.Name }); _folderColumn.Text = "Folder"; _folderColumn.Width = 180; _folderColumn.AutoSize = true; _folderList.Columns.Add(_folderColumn); _statusColumn = new ResourceListView2Column(new int[] { FileProxy._propStatus }); _statusColumn.Text = "Indexed"; _statusColumn.Width = 90; _statusColumn.SetPropToTextConverter(_statusColumn.PropIds[0], new PropertyToTextConverter(new PropertyToTextCallback(StatusToText))); _folderList.Columns.Add(_statusColumn); _folderList.SelectAddedItems = true; _folderList.ShowContextMenu = false; }