Beispiel #1
0
 public bool SetFolderToScanRepository(string folderToScanRepositoryName)
 {
     bool foundMatchingRepository = false;
       folderToScanRepositoryName = folderToScanRepositoryName.ToLower();
       foreach (FolderToScanRepositoryBase folderToScanRepository in gopherRepositoryManager.FolderToScanRepositories) {
     if (folderToScanRepository.Name.ToLower() == folderToScanRepositoryName) {
       SelectedFolderToScanRepository = folderToScanRepository;
       configReader.SetFolderToScanRepository(folderToScanRepository);
       foundMatchingRepository = true;
     }
       }
       return foundMatchingRepository;
 }
 public void SetFolderToScanRepository(FolderToScanRepositoryBase folderToScanRepository)
 {
     GopherConfig config = getConfig();
       config.SelectedFolderToScanRepositoryName = folderToScanRepository.Name;
       update(config);
 }