diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2020-01-22 18:00:55 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2020-01-22 18:00:55 +0200 |
| commit | bf432bf7b7faa7c51e74462e19eb3e50c28b4aa8 (patch) | |
| tree | 2cce2090c2455f2cadc3f8288f05688ae60a9ed5 /Software/Visual_Studio/Tango.Core/CustomAttributes | |
| parent | 287af6d4bed5333087cb9d702d20035b1ad9a326 (diff) | |
| download | Tango-bf432bf7b7faa7c51e74462e19eb3e50c28b4aa8.tar.gz Tango-bf432bf7b7faa7c51e74462e19eb3e50c28b4aa8.zip | |
Implemented StringFormat control for db properties.
Added StringFormat 0.000 for FeederTension on ProcessParameters.
Diffstat (limited to 'Software/Visual_Studio/Tango.Core/CustomAttributes')
| -rw-r--r-- | Software/Visual_Studio/Tango.Core/CustomAttributes/StringFormatAttribute.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Core/CustomAttributes/StringFormatAttribute.cs b/Software/Visual_Studio/Tango.Core/CustomAttributes/StringFormatAttribute.cs new file mode 100644 index 000000000..e7089b64d --- /dev/null +++ b/Software/Visual_Studio/Tango.Core/CustomAttributes/StringFormatAttribute.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Core.CustomAttributes +{ + [AttributeUsage(AttributeTargets.Property)] + public class StringFormatAttribute : Attribute + { + public String Format { get; set; } + + public StringFormatAttribute() + { + Format = "0.0"; + } + + public StringFormatAttribute(String format) : this() + { + Format = format; + } + } +} |
