public Dictionary <string, Fic> Objects() { // TODO: Optimize, prevent from blocking UI thread Dictionary <string, Fic> res = new Dictionary <string, Fic>(); List <string> matchedHahes = FileTools.MatchHashes(Hashes, FicObjects); foreach (string matchedID in matchedHahes) { res[matchedID] = FicObjects[matchedID]; } return(res); }
public static Dictionary <string, Fic> KindleObjects(Dictionary <string, Fic> master) { // TODO: Optimize, prevent from blocking UI thread Dictionary <string, Fic> res = new Dictionary <string, Fic>(); // NOTE: THE KINDLEFILES DICTIONARY IS IN THE FORM OF HASH : PATH, THERE IS NO ID IN IT //var matches = currentDisplay.Where(item => kindleFiles.ContainsKey(item.Key)).ToDictionary(item => item.Key, item => item.Value); List <string> matchedHahes = FileTools.MatchHashes(kindleFiles, master); foreach (string matchedID in matchedHahes) { res[matchedID] = master[matchedID]; } return(res); }