diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-04-08 17:48:58 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-04-08 17:48:58 +0300 |
| commit | a0e25846735104f09a18647220db59804977e73a (patch) | |
| tree | 63d918543e6862329dd08d4e6db3524ecc199390 /Software/Visual_Studio/Tango.BL/ExtensionMethods | |
| parent | 17a77c30765fe8a0d3ca57a9ec60fb43b82432d2 (diff) | |
| download | Tango-a0e25846735104f09a18647220db59804977e73a.tar.gz Tango-a0e25846735104f09a18647220db59804977e73a.zip | |
Fixed issue with
"Application Started" event.
Fixed issue with segment indexing after emb import.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/ExtensionMethods')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/ExtensionMethods/MediaColor.cs | 33 |
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); - } - } - } -} |
