More logical naming
This commit is contained in:
parent
aabc14c639
commit
89059510fd
@ -19,7 +19,7 @@ namespace LibationWinForms
|
||||
* Remove is overridden to ensure that removed items are removed from
|
||||
* the base list (visible items) as well as the FilterRemoved list.
|
||||
*/
|
||||
internal class SortableFilterableBindingList : SortableBindingList<GridEntry>, IBindingListView
|
||||
internal class FilterableSortableBindingList : SortableBindingList<GridEntry>, IBindingListView
|
||||
{
|
||||
/// <summary>
|
||||
/// Items that were removed from the list due to filtering
|
||||
@ -30,7 +30,7 @@ namespace LibationWinForms
|
||||
/// </summary>
|
||||
private string FilterString;
|
||||
private Action Sort;
|
||||
public SortableFilterableBindingList(IEnumerable<GridEntry> enumeration) : base(enumeration)
|
||||
public FilterableSortableBindingList(IEnumerable<GridEntry> enumeration) : base(enumeration)
|
||||
{
|
||||
//This is only necessary because SortableBindingList doesn't expose Sort()
|
||||
//You should make SortableBindingList.Sort protected and remove reflection
|
||||
@ -156,7 +156,7 @@ namespace LibationWinForms
|
||||
|
||||
#region UI display functions
|
||||
|
||||
private SortableFilterableBindingList bindingList;
|
||||
private FilterableSortableBindingList bindingList;
|
||||
|
||||
private bool hasBeenDisplayed;
|
||||
public event EventHandler InitialLoaded;
|
||||
@ -180,7 +180,7 @@ namespace LibationWinForms
|
||||
|
||||
private void bindToGrid(List<LibraryBook> dbBooks)
|
||||
{
|
||||
bindingList = new SortableFilterableBindingList(dbBooks.OrderByDescending(lb => lb.DateAdded).Select(lb => new GridEntry(lb)));
|
||||
bindingList = new FilterableSortableBindingList(dbBooks.OrderByDescending(lb => lb.DateAdded).Select(lb => new GridEntry(lb)));
|
||||
gridEntryBindingSource.DataSource = bindingList;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user