aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Technician
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-04-24 19:30:23 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-04-24 19:30:23 +0300
commit4b95b6c19bdf18e50068285b3b0a8a8ab0a7b4ce (patch)
tree327f7c345e6364ee961916b628a1f8029459d7ee /Software/Visual_Studio/PPC/Modules/Tango.PPC.Technician
parent7ebc478b390e52ea5332bf7c443ca6a8ac79154c (diff)
downloadTango-4b95b6c19bdf18e50068285b3b0a8a8ab0a7b4ce.tar.gz
Tango-4b95b6c19bdf18e50068285b3b0a8a8ab0a7b4ce.zip
Machine Studio v4.0.13.0
PPC v1.0.11.0
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Technician')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Technician/ViewModels/LoggingViewVM.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Technician/ViewModels/LoggingViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Technician/ViewModels/LoggingViewVM.cs
index 1f63fcd55..0146f199b 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Technician/ViewModels/LoggingViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Technician/ViewModels/LoggingViewVM.cs
@@ -62,8 +62,15 @@ namespace Tango.PPC.Technician.ViewModels
ApplicationLogsViewSource.Filter = (x) =>
{
- LogItemBase log = x as LogItemBase;
- return String.IsNullOrWhiteSpace(Filter) || log.Category.ToString().ToLower().Contains(Filter.ToLower()) || log.Message.ToLower().Contains(Filter.ToLower());
+ try
+ {
+ LogItemBase log = x as LogItemBase;
+ return String.IsNullOrWhiteSpace(Filter) || log.Category.ToString().ToLower().Contains(Filter.ToLower()) || log.Message.ToLower().Contains(Filter.ToLower());
+ }
+ catch
+ {
+ return false;
+ }
};
}