Add 4 missing fields to Archive

This commit is contained in:
Matt Nadareski
2023-04-07 15:47:24 -04:00
parent 9410363d99
commit e8f543ff62
7 changed files with 132 additions and 5 deletions

View File

@@ -88,6 +88,10 @@ namespace SabreTools.Filtering
public FilterItem<string> Clone { get; private set; } = new FilterItem<string>();
public FilterItem<string> RegParent { get; private set; } = new FilterItem<string>();
public FilterItem<string> Languages { get; private set; } = new FilterItem<string>();
public FilterItem<string> DevStatus { get; private set; } = new FilterItem<string>();
public FilterItem<string> Physical { get; private set; } = new FilterItem<string>();
public FilterItem<string> Complete { get; private set; } = new FilterItem<string>();
public FilterItem<string> Categories { get; private set; } = new FilterItem<string>();
// BiosSet
public FilterItem<string> Description { get; private set; } = new FilterItem<string>();
@@ -457,6 +461,22 @@ namespace SabreTools.Filtering
SetStringFilter(Languages, value, negate);
break;
case DatItemField.DevStatus:
SetStringFilter(DevStatus, value, negate);
break;
case DatItemField.Physical:
SetStringFilter(Physical, value, negate);
break;
case DatItemField.Complete:
SetStringFilter(Complete, value, negate);
break;
case DatItemField.Categories:
SetStringFilter(Categories, value, negate);
break;
// BiosSet
case DatItemField.Description:
SetStringFilter(Description, value, negate);
@@ -985,6 +1005,22 @@ namespace SabreTools.Filtering
if (!PassStringFilter(Languages, archive.Languages))
return false;
// Filter on dev status
if (!PassStringFilter(DevStatus, archive.DevStatus))
return false;
// Filter on physical
if (!PassStringFilter(Physical, archive.Physical))
return false;
// Filter on complete
if (!PassStringFilter(Complete, archive.Complete))
return false;
// Filter on categories
if (!PassStringFilter(Categories, archive.Categories))
return false;
return true;
}