diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-02-10 18:28:41 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-02-10 18:28:41 +0200 |
| commit | a65868d1d77b1929b855abd0c19bdc08bc9cee9d (patch) | |
| tree | 09486bed718fb096914780f33313fb82a0207c87 /Software/Visual_Studio/Tango.Integration/Operation/DefaultMachineEventsStateProvider.cs | |
| parent | 82179e1b69b62b971a04af571979e7d10c60fd7a (diff) | |
| parent | ac9678197fc6142595089155d98442239a64e6d7 (diff) | |
| download | Tango-a65868d1d77b1929b855abd0c19bdc08bc9cee9d.tar.gz Tango-a65868d1d77b1929b855abd0c19bdc08bc9cee9d.zip | |
merge
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>()); + } } } |
