public MainWindow() { InitializeComponent(); _hashDb = new HashDb(); _fileWalker = new FileWalker(_hashDb); _hashDbViewModel = new HashDBViewModel(); DataContext = _hashDbViewModel; UpdateScan(@"c:\tmp"); Width = 1200; Height = 600; }
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); } }