aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StopModel.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <roy.mail.net@gmail.com>2025-09-09 16:30:00 +0300
committerRoy Ben Shabat <roy.mail.net@gmail.com>2025-09-09 16:30:00 +0300
commitba37d5082917551fd9a2b194fa1489f1fd86f39b (patch)
treee60ec8ec66d7852c5231968983063bd3fe225a0f /Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StopModel.cs
parentf87208b19e183d309a3bcacd26ecc74c4da728d4 (diff)
downloadTango-ba37d5082917551fd9a2b194fa1489f1fd86f39b.tar.gz
Tango-ba37d5082917551fd9a2b194fa1489f1fd86f39b.zip
FSE Improved Statistics + Dynamic CSV Export !
Diffstat (limited to 'Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StopModel.cs')
-rw-r--r--Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StopModel.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StopModel.cs b/Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StopModel.cs
index a4f2f8caf..3b3fad3f0 100644
--- a/Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StopModel.cs
+++ b/Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/StopModel.cs
@@ -69,7 +69,7 @@ namespace Tango.FSE.Statistics.Models
{
get
{
- return String.Join("\n", Output.Where(x => x.Volume > 0).Select(x => x.LiquidType.Name + ": " + Math.Round(x.Volume, 2)));
+ return String.Join("\n", Output.Where(x => x != null && x.Volume > 0).Select(x => x.LiquidType.Name + ": " + Math.Round(x.Volume, 2)));
}
}
@@ -86,8 +86,8 @@ namespace Tango.FSE.Statistics.Models
get
{
var output = new List<PresentationLiquidVolume>();
- output.AddRange(LiquidVolumes.Where(x => x.LiquidType.HasPigment && x.Volume > 0).OrderBy(x => x.LiquidType.PreferredIndex));
- output.Add(LiquidVolumes.FirstOrDefault(x => x.LiquidType.Type == LiquidTypes.Transparent));
+ output.AddRange(LiquidVolumes.Where(x => x.Volume > 0).OrderBy(x => x.LiquidType.PreferredIndex));
+ //output.Add(LiquidVolumes.FirstOrDefault(x => x.LiquidType.Type == LiquidTypes.Transparent));
return output;
}
}