FileWatcherEventArgs.cs 1019 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. namespace Azylee.Core.IOUtils.FileManUtils
  7. {
  8. public class FileWatcherEventArgs
  9. {
  10. public FileWatcherEventArgs(WatcherChangeTypes type, string fullpath, string name, string oldfullpath, string oldname)
  11. {
  12. _ChangeType = type;
  13. _FullPath = fullpath;
  14. _Name = name;
  15. _OldFullPath = oldfullpath;
  16. _OldName = oldname;
  17. }
  18. private WatcherChangeTypes _ChangeType;
  19. public WatcherChangeTypes ChangeType { get { return _ChangeType; } }
  20. private string _FullPath;
  21. public string FullPath { get { return _FullPath; } }
  22. private string _Name;
  23. public string Name { get { return _Name; } }
  24. private string _OldFullPath;
  25. public string OldFullPath { get { return _OldFullPath; } }
  26. private string _OldName;
  27. public string OldName { get { return _OldName; } }
  28. }
  29. }