diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-02-07 15:39:12 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-02-07 15:39:12 +0200 |
| commit | bd3cb640be12621ac37253e8a8c627ae40692e4d (patch) | |
| tree | cddc36bc95b966f48e1b7387fed1955504d3975b /Software/Visual_Studio/Tango.Integration/Operation/DefaultMachineEventsStateProvider.cs | |
| parent | 7a1f9f14cc50001366be0efefc25fd5af403d02e (diff) | |
| download | Tango-bd3cb640be12621ac37253e8a8c627ae40692e4d.tar.gz Tango-bd3cb640be12621ac37253e8a8c627ae40692e4d.zip | |
Some fixes and improvements for PPC & Machine Studio.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/DefaultMachineEventsStateProvider.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/DefaultMachineEventsStateProvider.cs | 10 |
1 files changed, 10 insertions, 0 deletions
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); } + + /// <summary> + /// Resets the current events tracking. + /// </summary> + public void Reset() + { + _events = new ReadOnlyCollection<MachinesEvent>(new List<MachinesEvent>()); + RaisePropertyChanged(nameof(Events)); + OnEventsChanged(new List<MachinesEvent>()); + } } } |
