/// <summary> /// Method to apply updated index files from master index to slave indexes /// </summary> /// <returns>Hashtable of updated indexes</returns> public Hashtable CopyAllFiles() { Hashtable htUpdates = new Hashtable(); bool bCopy = false; foreach (IndexSet idxSet in this._arIndexSet) { bCopy = false; if (idxSet.CurrentIndex != null && idxSet.CurrentIndex.CanCopy) { bCopy = idxSet.CurrentIndex.Copy(); } if (bCopy && !htUpdates.ContainsKey(idxSet.CurrentIndex.StatusDirectory)) { htUpdates.Add(idxSet.CurrentIndex.StatusDirectory, idxSet.CurrentIndex); } } foreach (DictionaryEntry de in htUpdates) { string sTargetDir = de.Key.ToString(); CurrentIndex ci = (CurrentIndex)de.Value; ci.UpdateRefresh(); } return(htUpdates); }