static void Main(string[] args) { try { Logger.Info("Starting Tester..."); var h = new HashDb(); var w = new FileWalker(h); w.WalkDirectory(@"c:\tmp"); h.SaveToXml(xmlFileName); h.LoadFromXml(xmlFileName); Console.WriteLine(h); } catch (Exception e) { Logger.Error(e); } }
void UpdateScan(string path) { _fileWalker.WalkDirectory(path); _hashDbViewModel.Hashes.Clear(); _hashDbViewModel.Hashes = new ObservableCollection <Hash>(_hashDb.GetAllHashes()); }