aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Models
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-14 15:05:17 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-14 15:05:17 +0300
commit84a8a6924abb7f78191d6f0d2290b55832c456ae (patch)
tree12d8902073554bef59617cb463e0d0168432de88 /Software/Visual_Studio/PPC/Tango.PPC.Common/Models
parentd47216027fb8eb28142b1c18841c1e05bb38e955 (diff)
downloadTango-84a8a6924abb7f78191d6f0d2290b55832c456ae.tar.gz
Tango-84a8a6924abb7f78191d6f0d2290b55832c456ae.zip
Implemented color conversion error messages !
Implemented unified printing manager on PPC. Refactored job statuses and categories to DRAFT, COMPLETED, DISRUPTED.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Models')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Models/FineTuneItem.cs95
1 files changed, 95 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Models/FineTuneItem.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Models/FineTuneItem.cs
new file mode 100644
index 000000000..7e29d41d2
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Models/FineTuneItem.cs
@@ -0,0 +1,95 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.BL.ColorConversion;
+using Tango.BL.Entities;
+using Tango.Core;
+using Tango.PMR.ColorLab;
+
+namespace Tango.PPC.Common.Models
+{
+ /// <summary>
+ /// Represents a fine tuning item.
+ /// </summary>
+ /// <seealso cref="Tango.Core.ExtendedObject" />
+ public class FineTuneItem : ExtendedObject
+ {
+ public event Action SelectedChanged;
+
+ /// <summary>
+ /// Gets or sets the brush stops.
+ /// </summary>
+ public List<BrushStop> BrushStops { get; set; }
+
+ private List<ColorConversionSuggestion> _suggestions;
+ /// <summary>
+ /// Gets or sets the triplet suggestions.
+ /// </summary>
+ public List<ColorConversionSuggestion> Suggestions
+ {
+ get { return _suggestions; }
+ set { _suggestions = value; RaisePropertyChangedAuto(); }
+ }
+
+ private List<ColorConversionSuggestion> _hiveSuggestions;
+ /// <summary>
+ /// Gets or sets the hive suggestions.
+ /// </summary>
+ public List<ColorConversionSuggestion> HiveSuggestions
+ {
+ get { return _hiveSuggestions; }
+ set { _hiveSuggestions = value; RaisePropertyChangedAuto(); }
+ }
+
+ private bool _isSelected;
+ /// <summary>
+ /// Gets or sets a value indicating whether this instance is selected.
+ /// </summary>
+ public bool IsSelected
+ {
+ get { return _isSelected; }
+ set { _isSelected = value; RaisePropertyChangedAuto(); SelectedChanged?.Invoke(); }
+ }
+
+ private ColorConversionSuggestion _selectedSuggestion;
+ /// <summary>
+ /// Gets or sets the selected triplet suggestion.
+ /// </summary>
+ public ColorConversionSuggestion SelectedSuggestion
+ {
+ get { return _selectedSuggestion; }
+ set { _selectedSuggestion = value; RaisePropertyChangedAuto(); }
+ }
+
+ private ColorConversionSuggestion _selectedHiveSuggestion;
+ /// <summary>
+ /// Gets or sets the selected hive suggestion.
+ /// </summary>
+ public ColorConversionSuggestion SelectedHiveSuggestion
+ {
+ get { return _selectedHiveSuggestion; }
+ set { _selectedHiveSuggestion = value; RaisePropertyChangedAuto(); }
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="FineTuneItem"/> class.
+ /// </summary>
+ public FineTuneItem()
+ {
+ Suggestions = new List<ColorConversionSuggestion>();
+ BrushStops = new List<BrushStop>();
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="FineTuneItem"/> class.
+ /// </summary>
+ /// <param name="conversionOutput">The conversion output.</param>
+ public FineTuneItem(ConversionOutput conversionOutput) : this()
+ {
+ Suggestions = TangoColorConverter.CreateTrippletSuggestions(conversionOutput);
+ HiveSuggestions = TangoColorConverter.CreateHiveSuggestions(conversionOutput);
+ }
+ }
+}