aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StatsModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StatsModel.cs')
-rw-r--r--Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StatsModel.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StatsModel.cs b/Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StatsModel.cs
index 773bea60b..ab2119573 100644
--- a/Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StatsModel.cs
+++ b/Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StatsModel.cs
@@ -31,18 +31,18 @@ namespace Tango.FSE.Statistics.Models
public StatsModel()
{
- LiquidQuantities = new List<LiquidQuantityModel>()
+ var liquidQuantities = new List<LiquidQuantityModel>();
+
+ foreach (var item in Enum.GetValues(typeof(LiquidTypes)).Cast<int>())
{
- new LiquidQuantityModel() { LiquidType = LiquidTypes.Cyan, Quantity = 1 },
- new LiquidQuantityModel() { LiquidType = LiquidTypes.Magenta, Quantity = 1 },
- new LiquidQuantityModel() { LiquidType = LiquidTypes.Yellow, Quantity = 1 },
- new LiquidQuantityModel() { LiquidType = LiquidTypes.Black, Quantity = 1 },
- new LiquidQuantityModel() { LiquidType = LiquidTypes.LightCyan, Quantity = 1 },
- new LiquidQuantityModel() { LiquidType = LiquidTypes.LightMagenta, Quantity = 1 },
- new LiquidQuantityModel() { LiquidType = LiquidTypes.LightYellow, Quantity = 1 },
- new LiquidQuantityModel() { LiquidType = LiquidTypes.TransparentInk, Quantity = 1 },
- new LiquidQuantityModel() { LiquidType = LiquidTypes.Lubricant, Quantity = 1 },
- };
+ liquidQuantities.Add(new LiquidQuantityModel()
+ {
+ LiquidType = new Tango.BL.Entities.LiquidType() { Code = item },
+ Quantity = 1
+ });
+ }
+
+ LiquidQuantities = liquidQuantities;
FailedRuns = 1;
CompletedRuns = 1;