-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using COMPASS.Models.CodexProperties; | ||
using System.Windows.Media; | ||
|
||
namespace COMPASS.Models.Filters | ||
{ | ||
internal class EmptyFilter : Filter | ||
{ | ||
public EmptyFilter(CodexProperty filterValue) : base(FilterType.Empty, filterValue) | ||
{ | ||
} | ||
|
||
private CodexProperty prop => (CodexProperty)FilterValue!; | ||
|
||
public override Color BackgroundColor => Colors.LightSlateGray; | ||
|
||
public override string Content => $"No value for '{prop.Label}'"; | ||
|
||
public override bool Apply(Codex codex) => prop.IsEmpty(codex); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ public enum FilterType | |
FileExtension, | ||
HasBrokenPath, | ||
HasISBN, | ||
Domain | ||
Domain, | ||
Empty | ||
} | ||
} |
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