-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add new dialog * nice search * imporved search * updates * add filtering on focus item * aadd todo * working search prefilter * more search improvements * restore dialog * fix removed files * add missing file * add filter * update filter * add docs * add changelog * tidy up code * tidy up from codeql * tidy up * replace only click
- Loading branch information
Showing
11 changed files
with
1,097 additions
and
18 deletions.
There are no files selected for viewing
31 changes: 27 additions & 4 deletions
31
Application/ResearchDataManagementPlatform/Menus/RDMPTopMenuStripUI.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
Rdmp.UI/Collections/Providers/Filtering/CohortAggregateContainerFilter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright (c) The University of Dundee 2024-2024 | ||
// This file is part of the Research Data Management Platform (RDMP). | ||
// RDMP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
// RDMP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
// You should have received a copy of the GNU General Public License along with RDMP. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
using BrightIdeasSoftware; | ||
using Rdmp.Core.Curation.Data; | ||
using Rdmp.Core.Curation.Data.Cohort; | ||
using Rdmp.Core.ReusableLibraryCode.Settings; | ||
using Rdmp.UI.SimpleDialogs; | ||
|
||
namespace Rdmp.UI.Collections.Providers.Filtering; | ||
|
||
/// <summary> | ||
/// Filters objects in a <see cref="NewfindUI"/> based on whether the <see cref="Catalogue"/> is marked | ||
/// with various flags (e.g. <see cref="Catalogue.IsDeprecated"/> | ||
/// </summary> | ||
public class CohortAggregateContainerFilter : IModelFilter | ||
{ | ||
private readonly bool _filter = false; | ||
|
||
public CohortAggregateContainerFilter() | ||
{ | ||
_filter = UserSettings.ScoreZeroForCohortAggregateContainers; | ||
} | ||
public bool Filter(object modelObject) | ||
{ | ||
if (_filter) | ||
{ | ||
return modelObject is CohortAggregateContainer; | ||
} | ||
return true; | ||
} | ||
} | ||
|
Oops, something went wrong.