aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/ExtensionMethods
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/ExtensionMethods')
-rw-r--r--Software/Visual_Studio/Tango.BL/ExtensionMethods/MediaColor.cs33
1 files changed, 0 insertions, 33 deletions
diff --git a/Software/Visual_Studio/Tango.BL/ExtensionMethods/MediaColor.cs b/Software/Visual_Studio/Tango.BL/ExtensionMethods/MediaColor.cs
deleted file mode 100644
index e4a312775..000000000
--- a/Software/Visual_Studio/Tango.BL/ExtensionMethods/MediaColor.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using ColorMine.ColorSpaces;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Media;
-
-namespace Tango.BL.Entities
-{
- public partial class MediaColor
- {
- private Color _color;
-
- public Color Color
- {
- get { return _color; }
- set { _color = value; RaisePropertyChangedAuto(); }
- }
-
- protected override void RaisePropertyChanged(string propName)
- {
- base.RaisePropertyChanged(propName);
-
- if (propName == nameof(L) || propName == nameof(A) || propName == nameof(B))
- {
- Lab lab = new Lab(L, A, B);
- var rgb = lab.To<Rgb>();
- Color = Color.FromRgb((byte)rgb.R, (byte)rgb.G, (byte)rgb.B);
- }
- }
- }
-}