private void Dispose(bool disposing) { if (disposed) { return; } disposed = true; if (disposing) { Stop(); watcher.Dispose(); } }
private void Dispose(bool disposing) { if (disposed) { return; } disposed = true; if (disposing) { CurrentBranchUpdated = null; GitStatusUpdated = null; GitAheadBehindStatusUpdated = null; GitLogUpdated = null; GitLocksUpdated = null; LocalBranchesUpdated = null; RemoteBranchesUpdated = null; DataNeedsRefreshing = null; Stop(); watcher.Dispose(); } }