From 133dbb74711293a40c8e33ec8b640021b78e84d2 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Mon, 16 May 2022 15:11:21 -0600 Subject: [PATCH] Update Dinah --- Source/FileManager/FileManager.csproj | 2 +- .../grid/FilterableSortableBindingList.cs | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Source/FileManager/FileManager.csproj b/Source/FileManager/FileManager.csproj index acf472a9..f906047a 100644 --- a/Source/FileManager/FileManager.csproj +++ b/Source/FileManager/FileManager.csproj @@ -5,7 +5,7 @@ - + diff --git a/Source/LibationWinForms/grid/FilterableSortableBindingList.cs b/Source/LibationWinForms/grid/FilterableSortableBindingList.cs index 3adfc663..5cee30dd 100644 --- a/Source/LibationWinForms/grid/FilterableSortableBindingList.cs +++ b/Source/LibationWinForms/grid/FilterableSortableBindingList.cs @@ -26,14 +26,7 @@ namespace LibationWinForms /// private readonly List FilterRemoved = new(); private string FilterString; - private Action Sort; - public FilterableSortableBindingList(IEnumerable enumeration) : base(enumeration) - { - //This is only necessary because SortableBindingList doesn't expose Sort() - //You should make SortableBindingList.Sort protected and remove reflection - var method = typeof(SortableBindingList).GetMethod("Sort", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); - Sort = method.CreateDelegate(this); - } + public FilterableSortableBindingList(IEnumerable enumeration) : base(enumeration) { } public bool SupportsFiltering => true; public string Filter { get => FilterString; set => ApplyFilter(value); }