diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-25 14:32:42 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-25 14:32:42 +0200 |
| commit | b5692b2f28929e7473ec73be0a1b5124149b8e2e (patch) | |
| tree | fde0515d7ef4442a46e0d904e26c2f389a0d9684 /Software/Visual_Studio/Tango.BL/ExtensionMethods | |
| parent | ed125329bd961f4ecf86796bd7c65d9c75354855 (diff) | |
| download | Tango-b5692b2f28929e7473ec73be0a1b5124149b8e2e.tar.gz Tango-b5692b2f28929e7473ec73be0a1b5124149b8e2e.zip | |
Some work on PPC and database!
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/ExtensionMethods')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/ExtensionMethods/ColorSpacesExtensions.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/ExtensionMethods/ColorSpacesExtensions.cs b/Software/Visual_Studio/Tango.BL/ExtensionMethods/ColorSpacesExtensions.cs new file mode 100644 index 000000000..67128680d --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/ExtensionMethods/ColorSpacesExtensions.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Enumerations; + +public static class ColorSpacesExtensions +{ + /// <summary> + /// Determines whether the specified color space is allowed to be used by standard user. + /// </summary> + /// <param name="colorspace">The color space.</param> + public static bool IsUserSpace(this ColorSpaces colorspace) + { + return colorspace != ColorSpaces.Volume && colorspace != ColorSpaces.CMYK; + } +} + |
