protected override int OnOutput() { this.Numeric = false; if (ValueAsInt < 0) { Text = "-$" + Math.Abs(ValueAsInt).ToString("X" + Digits); } else { Text = "$" + ValueAsInt.ToString("X" + Digits); } return(1); }
public override string ToString() { switch (Type) { case ClaimType.DateTime: return(ValueAsDateTime.ToString()); case ClaimType.Int: return(ValueAsInt.ToString()); default: return(ValueAsString); } }
public string ValueToString() { switch (Field.Type) { case FieldType.Int: return(ValueAsInt.ToString()); case FieldType.TimeLength: return(ValueAsTimeLength.ToString()); case FieldType.TimeOfDay: return(ValueAsTimeOfDay.ToString()); default: return(""); } }