Esempio n. 1
0
        private void RemoveRepository(string folder_path)
        {
            for (int i = 0; i < this.repositories.Count; i++)
            {
                SparkleRepoBase repo = this.repositories [i];

                if (repo.LocalPath.Equals(folder_path))
                {
                    repo.Dispose();
                    this.repositories.Remove(repo);
                    repo = null;

                    return;
                }
            }
        }
        // Removes a repository from the list of repositories and
        // updates the statusicon menu
        private void RemoveRepository(string folder_path)
        {
            string folder_name = Path.GetFileName(folder_path);

            for (int i = 0; i < Repositories.Count; i++)
            {
                SparkleRepoBase repo = Repositories [i];

                if (repo.Name.Equals(folder_name))
                {
                    repo.Dispose();
                    Repositories.Remove(repo);
                    repo = null;
                    break;
                }
            }
        }