aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-04-30 17:48:03 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-04-30 17:48:03 +0300
commit4f98c8a51a1572ad74bf46fce7090fd2182d5a3e (patch)
treebbbc77489c7edf1db70005acf96b650689927b42 /Software/Visual_Studio/PPC/Modules
parent1d02b0cf2a0aa550cb87464ab8beea60a6d2e006 (diff)
downloadTango-4f98c8a51a1572ad74bf46fce7090fd2182d5a3e.tar.gz
Tango-4f98c8a51a1572ad74bf46fce7090fd2182d5a3e.zip
Some improvements to PPC.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Technician/ViewModels/LoggingViewVM.cs9
1 files changed, 2 insertions, 7 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 0146f199b..643d6ab55 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
@@ -90,16 +90,11 @@ namespace Tango.PPC.Technician.ViewModels
{
ApplicationLogs.Insert(0, log);
- var now = DateTime.Now;
-
try
{
- foreach (var l in ApplicationLogs.ToList())
+ if (ApplicationLogs.Count > 100)
{
- if (l.TimeStamp.Date < DateTime.Now.Date)
- {
- ApplicationLogs.Remove(l);
- }
+ ApplicationLogs.Remove(ApplicationLogs.Last());
}
}
catch