コード例 #1
0
 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);
 }
コード例 #2
0
        public override string ToString()
        {
            switch (Type)
            {
            case ClaimType.DateTime:
                return(ValueAsDateTime.ToString());

            case ClaimType.Int:
                return(ValueAsInt.ToString());

            default:
                return(ValueAsString);
            }
        }
コード例 #3
0
            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("");
                }
            }