mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Promote Info
This commit is contained in:
@@ -86,11 +86,6 @@ namespace SabreTools.Library.Filtering
|
||||
|
||||
public FilterItem<Supported> Machine_Supported { get; private set; } = new FilterItem<Supported>() { Positive = Supported.NULL, Negative = Supported.NULL };
|
||||
|
||||
// Infos
|
||||
public FilterItem<bool?> Machine_Infos { get; private set; } = new FilterItem<bool?>() { Neutral = null };
|
||||
public FilterItem<string> Machine_Info_Name { get; private set; } = new FilterItem<string>();
|
||||
public FilterItem<string> Machine_Info_Value { get; private set; } = new FilterItem<string>();
|
||||
|
||||
// SharedFeatures
|
||||
public FilterItem<bool?> Machine_SharedFeatures { get; private set; } = new FilterItem<bool?>() { Neutral = null };
|
||||
public FilterItem<string> Machine_SharedFeature_Name { get; private set; } = new FilterItem<string>();
|
||||
@@ -261,6 +256,9 @@ namespace SabreTools.Library.Filtering
|
||||
public FilterItem<FeatureStatus> DatItem_FeatureStatus { get; private set; } = new FilterItem<FeatureStatus>() { Positive = FeatureStatus.NULL, Negative = FeatureStatus.NULL };
|
||||
public FilterItem<FeatureStatus> DatItem_FeatureOverall { get; private set; } = new FilterItem<FeatureStatus>() { Positive = FeatureStatus.NULL, Negative = FeatureStatus.NULL };
|
||||
|
||||
// Info
|
||||
public FilterItem<string> DatItem_InfoValue { get; private set; } = new FilterItem<string>();
|
||||
|
||||
// Input
|
||||
public FilterItem<bool?> DatItem_Service { get; private set; } = new FilterItem<bool?>() { Neutral = null };
|
||||
public FilterItem<bool?> DatItem_Tilt { get; private set; } = new FilterItem<bool?>() { Neutral = null };
|
||||
@@ -653,28 +651,6 @@ namespace SabreTools.Library.Filtering
|
||||
Machine_Supported.Positive |= value.AsSupported();
|
||||
break;
|
||||
|
||||
// Infos
|
||||
case Field.Machine_Infos:
|
||||
if (negate || value.Equals("false", StringComparison.OrdinalIgnoreCase))
|
||||
Machine_Infos.Neutral = false;
|
||||
else
|
||||
Machine_Infos.Neutral = true;
|
||||
break;
|
||||
|
||||
case Field.Machine_Info_Name:
|
||||
if (negate)
|
||||
Machine_Info_Name.NegativeSet.Add(value);
|
||||
else
|
||||
Machine_Info_Name.PositiveSet.Add(value);
|
||||
break;
|
||||
|
||||
case Field.Machine_Info_Value:
|
||||
if (negate)
|
||||
Machine_Info_Value.NegativeSet.Add(value);
|
||||
else
|
||||
Machine_Info_Value.PositiveSet.Add(value);
|
||||
break;
|
||||
|
||||
// SharedFeatures
|
||||
case Field.Machine_SharedFeatures:
|
||||
if (negate || value.Equals("false", StringComparison.OrdinalIgnoreCase))
|
||||
@@ -1491,6 +1467,14 @@ namespace SabreTools.Library.Filtering
|
||||
DatItem_FeatureOverall.Positive |= value.AsFeatureStatus();
|
||||
break;
|
||||
|
||||
// Info
|
||||
case Field.DatItem_InfoValue:
|
||||
if (negate)
|
||||
DatItem_InfoValue.NegativeSet.Add(value);
|
||||
else
|
||||
DatItem_InfoValue.PositiveSet.Add(value);
|
||||
break;
|
||||
|
||||
// Input
|
||||
case Field.DatItem_Service:
|
||||
if (negate || value.Equals("false", StringComparison.OrdinalIgnoreCase))
|
||||
|
||||
Reference in New Issue
Block a user