aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2024-11-14 14:44:41 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2024-11-14 14:44:41 +0200
commit3c8beb9077c982ba19a8e68b9a36abc065cb4269 (patch)
treefb1d79ffc431ad1d203f2f172e37d0443b5eff06 /Software/Visual_Studio/PPC
parent7d9ab3b87aed944167d77244b00fbdd4224725e2 (diff)
downloadTango-3c8beb9077c982ba19a8e68b9a36abc065cb4269.tar.gz
Tango-3c8beb9077c982ba19a8e68b9a36abc065cb4269.zip
PPC_v2.2.11
Diffstat (limited to 'Software/Visual_Studio/PPC')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/SMS/DefaultSMSNotificationProvider.cs18
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Properties/AssemblyInfo.cs2
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest2
3 files changed, 14 insertions, 8 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/SMS/DefaultSMSNotificationProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/SMS/DefaultSMSNotificationProvider.cs
index 0b810bb52..7452ea987 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/SMS/DefaultSMSNotificationProvider.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/SMS/DefaultSMSNotificationProvider.cs
@@ -35,11 +35,14 @@ namespace Tango.PPC.Common.SMS
{
if (e.Job.Designation == BL.Enumerations.JobDesignations.Default)
{
- try
+ if (e.JobHandler.Status.ProgressMinusSettingUp > _settings.SMSNotificationSettings.MinimumNotificationMeters)
{
- await SendMessage($"Job '{e.Job.Name}' failed at position {Math.Round(e.JobHandler.Status.ProgressMinusSettingUp, 1)}\n{e.Exception.Message}.");
+ try
+ {
+ await SendMessage($"Job '{e.Job.Name}' failed at position {Math.Round(e.JobHandler.Status.ProgressMinusSettingUp, 1)}\n{e.Exception.Message}.");
+ }
+ catch { }
}
- catch { }
}
}
}
@@ -50,11 +53,14 @@ namespace Tango.PPC.Common.SMS
{
if (e.Job.Designation == BL.Enumerations.JobDesignations.Default)
{
- try
+ if (e.JobHandler.Status.ProgressMinusSettingUp > _settings.SMSNotificationSettings.MinimumNotificationMeters)
{
- await SendMessage($"Job '{e.Job.Name}' has completed successfully.");
+ try
+ {
+ await SendMessage($"Job '{e.Job.Name}' has completed successfully.");
+ }
+ catch { }
}
- catch { }
}
}
}
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Properties/AssemblyInfo.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Properties/AssemblyInfo.cs
index 85e840d0f..29d710d51 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Properties/AssemblyInfo.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Properties/AssemblyInfo.cs
@@ -8,4 +8,4 @@ using System.Windows;
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Tango PPC Application")]
-[assembly: AssemblyVersion("2.2.10.0")]
+[assembly: AssemblyVersion("2.2.11.0")]
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest b/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest
index efc5f8179..d72e75011 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest
@@ -16,7 +16,7 @@
Remove this element if your application requires this virtualization for backwards
compatibility.
-->
- <!--<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />-->
+ <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>