private void AddRepository (SparkleRepoBase repo) { lock (this.repo_lock) { this.repositories.Add (repo); this.repositories.Sort ((x, y) => string.Compare (x.Name, y.Name)); } }
public SparkleWatcher(SparkleRepoBase repo) { ReposToNotify.Add (repo); Changed += Notify; Created += Notify; Deleted += Notify; Renamed += Notify; Filter = "*"; Path = IO.Path.GetDirectoryName (repo.LocalPath); IncludeSubdirectories = true; EnableRaisingEvents = true; }
private FileActivityTask MacActivityTask(SparkleRepoBase repo, FileSystemEventArgs fse_args) { return delegate { new Thread (() => { repo.OnFileActivity (fse_args); }).Start (); }; }
private void RemoveRepository (SparkleRepoBase repo) { lock (this.repo_lock) this.repositories.Remove (repo); }
public ProjectInfo (SparkleRepoBase repo) { this.repo = repo; }