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