Exemple #1
0
        static void Main(string[] args)
        {
            FSW.Watcher w = new FSW.Watcher();
            w.StartWatch(@"C:\cursoC#\laboratorio de files system y delegados\Lab 01\Receive", "*.xml");
            Watch(w);

            Console.WriteLine("Presione ENTER cuando desee finalizar.\r\n\r\n");
            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            FSW.Watcher w = new FSW.Watcher();
            w.StartWatch(@"C:\Lab 01\Receive", "*.xml");
            Watch(w);

            Console.WriteLine("Presione ENTER cuando desee finalizar.\r\n\r\n");
            Console.ReadLine();
        }
Exemple #3
0
 public static void Watch(FSW.Watcher w)
 {
     w.NewFileHandler += new FSW.Watcher.NewFileEventHandler(onNotificationArrived);
 }