public void Start() { if (!fileSystem.Directory.Exists(settings.DataPath)) { Exit(); } else { mainWindow.DataContext = mainViewModel; mainWindow.Show(); mainViewModel.ApplicationShutDown += watcher.Dispose; checker.Finished += watcher.Start; checker.Start(); } }
private void CreatedHandler(object sender, FileSystemEventArgs e) { checker.Start(e.FullPath); }