Ejemplo n.º 1
0
 static void watcher_changed2(object sender, FileSystemEventArgs e)
 {
     Console.WriteLine("Deleted {0}, {1}", e.GetType(), e.FullPath);
 }
Ejemplo n.º 2
0
 // Define the event handlers.
 private static void OnChanged(object source, FileSystemEventArgs e)
 {
     // Specify what is done when a file is changed, created, or deleted.
     Console.WriteLine("File: " + e.FullPath + " " + e.ChangeType);
     Console.WriteLine(e.GetType());
 }