public bool GetIsBooleanProperty(CriteriaPropertyType type) { switch (type) { case CriteriaPropertyType.HasAttachment: return(true); default: return(false); } }
private string GetCriteriaDisplayText(CriteriaPropertyType type, string name, string value) { switch (type) { case CriteriaPropertyType.SizeOperator: SizeOperatorType sizeOperator; if (SizeOperatorTypes.TryGetValue(value, out sizeOperator)) { switch (sizeOperator) { case SizeOperatorType.GreaterThan: return("Size greater than"); case SizeOperatorType.LessThan: return("Size less than"); } } break; case CriteriaPropertyType.SizeUnit: SizeUnitType sizeUnit; if (SizeUnitTypes.TryGetValue(value, out sizeUnit)) { switch (sizeUnit) { case SizeUnitType.MB: return("Size in MB"); case SizeUnitType.KB: return("Size in KB"); case SizeUnitType.Byte: return("Size in bytes"); } } break; } return(GetDefaultDisplayText(name, value)); }
private string GetCriteriaDisplayText(CriteriaPropertyType type, string name, string value) { switch (type) { case CriteriaPropertyType.SizeOperator: SizeOperatorType sizeOperator; if (SizeOperatorTypes.TryGetValue(value, out sizeOperator)) { switch (sizeOperator) { case SizeOperatorType.GreaterThan: return "Size greater than"; case SizeOperatorType.LessThan: return "Size less than"; } } break; case CriteriaPropertyType.SizeUnit: SizeUnitType sizeUnit; if (SizeUnitTypes.TryGetValue(value, out sizeUnit)) { switch (sizeUnit) { case SizeUnitType.MB: return "Size in MB"; case SizeUnitType.KB: return "Size in KB"; case SizeUnitType.Byte: return "Size in bytes"; } } break; } return GetDefaultDisplayText(name, value); }
public bool GetIsBooleanProperty(CriteriaPropertyType type) { switch (type) { case CriteriaPropertyType.HasAttachment: return true; default: return false; } }