예제 #1
0
        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();
            }
        }
예제 #2
0
 private void CreatedHandler(object sender, FileSystemEventArgs e)
 {
     checker.Start(e.FullPath);
 }