aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2025-06-19 00:18:39 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2025-06-19 00:18:39 +0300
commit238beb908fc205fd30b97894095b8f1c1a4fb50b (patch)
treea577b55926be520d040d7586599887915ba684c1 /Software/Visual_Studio/PPC/Tango.PPC.UI
parenta4834f8b665bb4db7a25a78fc7735865119a4cb6 (diff)
downloadTango-238beb908fc205fd30b97894095b8f1c1a4fb50b.tar.gz
Tango-238beb908fc205fd30b97894095b8f1c1a4fb50b.zip
Added log to jerrican insertion.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs
index 7b0f47927..59f4d4f93 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs
@@ -463,6 +463,7 @@ namespace Tango.PPC.UI.ViewModels
{
MidTankLubLevel.Max = LubLevel.MidTankType.LiterCapacity;
MidTankLubLevel.IDSPack = LubLevel;
+ MidTankLubLevel.JerricanPresent = true;
};
MidTankLubLevel.PressedEvent += MidTankLevel_PressedEvent;
@@ -522,10 +523,17 @@ namespace Tango.PPC.UI.ViewModels
{
if (item.JerricanPresent && !model.JerricanPresent)
{
+ LogManager.Log($"Jerrican insersion detected. Jerrican {model.IDSPack.LiquidType.Name} has been flagged as 'Present'. Openning Jerrican Dialog.");
+
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
ShowAutoJerricanDialog(model);
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
}
+ else if (!item.JerricanPresent && model.JerricanPresent)
+ {
+ LogManager.Log($"Jerrican {model.IDSPack.LiquidType.Name} has been flagged as 'Missing'.");
+ }
+
}
model.JerricanPresent = item.JerricanPresent;
model.FillingTimeoutError = item.FillingTimeoutError;
@@ -618,6 +626,9 @@ namespace Tango.PPC.UI.ViewModels
if (!_jerricanDialogShowing)
{
_jerricanDialogShowing = true;
+
+ LogManager.Log($"Jerrican {e.IDSPack.LiquidType.Name} button pressed by user. Openning Jerrican Dialog.");
+
await ShowAutoJerricanDialog(e, true);
_jerricanDialogShowing = false;
}