diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-04-30 17:48:03 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-04-30 17:48:03 +0300 |
| commit | 4f98c8a51a1572ad74bf46fce7090fd2182d5a3e (patch) | |
| tree | bbbc77489c7edf1db70005acf96b650689927b42 /Software/Visual_Studio/PPC/Modules | |
| parent | 1d02b0cf2a0aa550cb87464ab8beea60a6d2e006 (diff) | |
| download | Tango-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.cs | 9 |
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 |
