Beispiel #1
0
        void _fileWatcher_Deleted(object sender, FileSystemEventArgs e)
        {
            ShowFileName _file = new ShowFileName("Deleted");

            Logger.Log(string.Format("File Deleted: Path:{0} Name:{1}", PathLocation(), e.Name));
            _file.setcount(3);
            _file.show(e.Name);
            _file.Show();
        }
Beispiel #2
0
        void _fileWatcher_Changed(object sender, FileSystemEventArgs e)
        {
            ShowFileName _file = new ShowFileName("Changed");

            Logger.Log(string.Format("File Changed: Path:{0} Name:{1}", PathLocation(), e.Name));
            string SourceFile = Path.Combine(PathLocation(), e.Name);
            string DestFile   = Path.Combine(DestPath, e.Name);

            File.Copy(SourceFile, DestFile, true);
            _file.setcount(1);
            _file.show(e.Name);
            _file.Show();
        }