From bd3cb640be12621ac37253e8a8c627ae40692e4d Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 7 Feb 2019 15:39:12 +0200 Subject: Some fixes and improvements for PPC & Machine Studio. --- .../Operation/DefaultMachineEventsStateProvider.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Software/Visual_Studio/Tango.Integration/Operation/DefaultMachineEventsStateProvider.cs') diff --git a/Software/Visual_Studio/Tango.Integration/Operation/DefaultMachineEventsStateProvider.cs b/Software/Visual_Studio/Tango.Integration/Operation/DefaultMachineEventsStateProvider.cs index 96f865cc3..8c376ea3e 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/DefaultMachineEventsStateProvider.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/DefaultMachineEventsStateProvider.cs @@ -136,5 +136,15 @@ namespace Tango.Integration.Operation { EventsChanged?.Invoke(this, events); } + + /// + /// Resets the current events tracking. + /// + public void Reset() + { + _events = new ReadOnlyCollection(new List()); + RaisePropertyChanged(nameof(Events)); + OnEventsChanged(new List()); + } } } -- cgit v1.3.1