Replace CntrlComparison with LeafGasComparison

This commit is contained in:
2016-04-22 11:18:21 -04:00
parent 9e25521034
commit 8f5cbfe3db
20 changed files with 398 additions and 193 deletions
+5 -1
View File
@@ -8,6 +8,7 @@ namespace LeafWeb.Core.Utility
public class ParseInfoAttribute : Attribute
{
public int Position { get; private set; }
public int? BoolEncodedPosition { get; private set; }
public string Units { get; private set; }
public string Title { get; private set; }
public string AlterateTitle { get; private set; }
@@ -23,13 +24,16 @@ namespace LeafWeb.Core.Utility
}
}
public ParseInfoAttribute(int position, [CallerMemberName]string title = null, string units = null, string alternateTitle = null, string exampleValue = null)
public ParseInfoAttribute(int position, [CallerMemberName]string title = null,
string units = null, string alternateTitle = null, string exampleValue = null,
int boolEncodedPosition = -1)
{
AlterateTitle = alternateTitle;
ExampleValue = exampleValue;
Title = title;
Position = position;
Units = units;
BoolEncodedPosition = boolEncodedPosition == -1 ? (int?)null : boolEncodedPosition;
}
public bool IsTitleMatch(string title)