public void Dispose() { if (m_Monitor == null) return; m_Monitor.Dispose(); m_Monitor = null; }
private void UpdateUI(NewList args) { OutstandingChanges.Clear(); args.Entries.ForEach(OutstandingChanges.Add); if (m_Monitor != null) { m_Monitor.Dispose(); } m_Monitor = new LocalModificationsMonitor(this, MonitoredDir, OutstandingChanges.SelectMany(change => change.Files)); if (CheckinOccured != null) CheckinOccured(OutstandingChanges); Changed("HasChanges"); }