Ejemplo n.º 1
0
        private void FileRenamed(object sender, RenamedEventArgs e)
        {
            string year = pc.GetYear(System.DateTime.Now).ToString() + "/";
            string mont = pc.GetMonth(DateTime.Now).ToString() + "/";
            string day  = pc.GetDayOfMonth(DateTime.Now).ToString() + "--" + DateTime.Now.ToShortTimeString();

            LoggerClass.log(string.Format("File Renamed= OldName:{0} New Name:{1}    Date:{2}{3}{4}", e.OldName, e.Name, year, mont, day));
        }
Ejemplo n.º 2
0
        private void FileChanged(object sender, FileSystemEventArgs e)
        {
            string year = pc.GetYear(System.DateTime.Now).ToString() + "/";
            string mont = pc.GetMonth(DateTime.Now).ToString() + "/";
            string day  = pc.GetDayOfMonth(DateTime.Now).ToString() + "--" + DateTime.Now.ToShortTimeString();

            LoggerClass.log(string.Format("File Changed= Path:{0} Name:{1}  Type:{2} Date:{3}{4}{5}", e.FullPath, e.Name, e.ChangeType, year, mont, day));
        }