private void TearDownWatcher() { if (watcher != null) { watcher.EventRecorded -= Watcher_EventRecorded; watcher.Enabled = false; watcher = null; } }
private void SetupWatcher(TaskFolder tf) { if (tf != null) { watcher = new TaskEventWatcher(tf) { SynchronizingObject = this }; watcher.EventRecorded += Watcher_EventRecorded; watcher.Enabled = true; } }
internal EventFilter([NotNull] TaskEventWatcher parent) { this.parent = parent; }