Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
elsa-lt committed Aug 14, 2022
2 parents 4937fce + fc660cc commit 2e67459
Show file tree
Hide file tree
Showing 12 changed files with 359 additions and 162 deletions.
17 changes: 17 additions & 0 deletions MalwareToolbox.DesktopApp/Core/Utils/AdvancedGroupList.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System.Collections;
using CommunityToolkit.WinUI.UI;

namespace MalwareToolbox.DesktopApp.Core.Utils;

public class AdvancedGroupList : AdvancedCollectionView, IGroupedList
{
public object Key { get; set; }

public AdvancedGroupList()
{
}

public AdvancedGroupList(IList source, bool isLiveShaping = false) : base(source, isLiveShaping)
{
}
}
4 changes: 2 additions & 2 deletions MalwareToolbox.DesktopApp/Core/Utils/GroupedList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

namespace MalwareToolbox.DesktopApp.Core.Utils;

public class GroupedList : ObservableCollection<object>
public class GroupedList : ObservableCollection<object>, IGroupedList
{
public object Key { get; set; }

public GroupedList(IEnumerable<object> items) : base(items)
{
}
Expand Down
6 changes: 6 additions & 0 deletions MalwareToolbox.DesktopApp/Core/Utils/IGroupedList.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace MalwareToolbox.DesktopApp.Core.Utils;

public interface IGroupedList
{
public object Key { get; set; }
}
Loading

0 comments on commit 2e67459

Please sign in to comment.