/// <summary>
        /// Add the specified repo.
        /// </summary>
        /// <param name="repo">Repository to listen to.</param>
        public void Add(INotifyRepositoryPropertyChanged repo)
        {
            if (!this.repos.ContainsKey(repo))
            {
                PropertyChangedEventHandler handler = delegate(object sender, PropertyChangedEventArgs e) {
                    if (e.PropertyName == Utils.NameOf((INotifyRepositoryPropertyChanged r) => r.Status))
                    {
                        this.AnyStatusChanged();
                    }
                    else if (e.PropertyName == Utils.NameOf((INotifyRepositoryPropertyChanged r) => r.NumberOfChanges))
                    {
                        this.AnyNumberChanged();
                    }
                };
                repo.PropertyChanged += handler;
                this.repos.Add(repo, handler);
                if (repo.NumberOfChanges > 0)
                {
                    this.AnyNumberChanged();
                }

                this.AnyStatusChanged();
                this.AnyDateChanged();
            }
        }
 /// <summary>
 /// Remove the specified repo.
 /// </summary>
 /// <param name="repo">Repository to stop listening to.</param>
 public void Remove(INotifyRepositoryPropertyChanged repo)
 {
     if (this.repos.ContainsKey(repo))
     {
         repo.PropertyChanged -= this.repos[repo];
         this.repos.Remove(repo);
         this.AnyStatusChanged();
         this.AnyNumberChanged();
         this.AnyDateChanged();
     }
 }
        /// <summary>
        /// Add the specified repo.
        /// </summary>
        /// <param name="repo">Repository to listen to.</param>
        public void Add(INotifyRepositoryPropertyChanged repo) {
            if (!this.repos.ContainsKey(repo)) {
                PropertyChangedEventHandler handler = delegate(object sender, PropertyChangedEventArgs e) {
                    if (e.PropertyName == Utils.NameOf((INotifyRepositoryPropertyChanged r) => r.Status)) {
                        this.AnyStatusChanged();
                    } else if (e.PropertyName == Utils.NameOf((INotifyRepositoryPropertyChanged r) => r.NumberOfChanges)) {
                        this.AnyNumberChanged();
                    }
                };
                repo.PropertyChanged += handler;
                this.repos.Add(repo, handler);
                if (repo.NumberOfChanges > 0) {
                    this.AnyNumberChanged();
                }

                this.AnyStatusChanged();
                this.AnyDateChanged();
            }
        }
 /// <summary>
 /// Remove the specified repo.
 /// </summary>
 /// <param name="repo">Repository to stop listening to.</param>
 public void Remove(INotifyRepositoryPropertyChanged repo) {
     if (this.repos.ContainsKey(repo)) {
         repo.PropertyChanged -= this.repos[repo];
         this.repos.Remove(repo);
         this.AnyStatusChanged();
         this.AnyNumberChanged();
         this.AnyDateChanged();
     }
 }