Ignore:
Timestamp:
May 18, 2009, 11:50:14 PM (13 years ago)
Author:
Arno Wacker
Message:
  • Added the double data-type as input-possibility.
Location:
trunk/CrypPlugins/TextOutput
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/TextOutput/TextOutput.cs

    r296 r312  
    338338        case TextOutputSettings.DynamicDataTypes.Integer:
    339339          return typeof(int);
     340        case TextOutputSettings.DynamicDataTypes.Double:
     341          return typeof(double);
    340342        case TextOutputSettings.DynamicDataTypes.Object:
    341343          return typeof(object);
     
    369371          case TextOutputSettings.DynamicDataTypes.Integer:
    370372            return DicDynamicProperties[name].Value;
     373          case TextOutputSettings.DynamicDataTypes.Double:
     374            return DicDynamicProperties[name].Value;
    371375          case TextOutputSettings.DynamicDataTypes.Object:
    372376            return DicDynamicProperties[name].Value;
     
    407411        {
    408412          fillValue = ((int)value).ToString();
     413        }
     414        else if (value is double)
     415        {
     416            fillValue = ((double)value).ToString();
    409417        }
    410418        else if (value is bool)
  • trunk/CrypPlugins/TextOutput/TextOutputSettings.cs

    r296 r312  
    225225
    226226    public enum EncodingTypes { Default = 0, Unicode = 1, UTF7 = 2, UTF8 = 3, UTF32 = 4, ASCII = 5, BigEndianUnicode = 6 };
    227     public enum DynamicDataTypes { CryptoolStream, String, ByteArray, Boolean, Integer , Object};
     227    public enum DynamicDataTypes { CryptoolStream, String, ByteArray, Boolean, Integer , Double, Object};
    228228    public enum PresentationFormat { Text, Hex, Base64 }
    229229
     
    379379    }
    380380
    381     [TaskPane("Type", "Select DataType of plugin.", "", 4, false, DisplayLevel.Beginner, ControlType.ComboBox, new string[] { "CryptoolStream", "string", "byte[]", "boolean", "int", "object" })]
     381    [TaskPane("Type", "Select DataType of plugin.", "", 4, false, DisplayLevel.Beginner, ControlType.ComboBox, new string[] { "CryptoolStream", "string", "byte[]", "boolean", "int", "double", "object" })]
    382382    public int DataType
    383383    {
Note: See TracChangeset for help on using the changeset viewer.