private void onChanges(object o, FileSystemEventArgs fsea) { lock (this) { fc.CopyFolderContents(); } }
private void intervalRun() { while (true) { lock (this) { fc.CopyFolderContents(); } Thread.Sleep(interval); } }