FileSystemEventArgs.cs 888 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // System.IO.FileSystemEventArgs.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System;
  10. namespace System.IO {
  11. public class FileSystemEventArgs : EventArgs {
  12. #region Fields
  13. WatcherChangeTypes changeType;
  14. string directory;
  15. string name;
  16. #endregion // Fields
  17. #region Constructors
  18. public FileSystemEventArgs (WatcherChangeTypes changeType, string directory, string name)
  19. {
  20. this.changeType = changeType;
  21. this.directory = directory;
  22. this.name = name;
  23. }
  24. #endregion // Constructors
  25. #region Properties
  26. public WatcherChangeTypes ChangeType {
  27. get { return changeType; }
  28. }
  29. public string FullPath {
  30. get { return Path.Combine (directory, name); }
  31. }
  32. public string Name {
  33. get { return name; }
  34. }
  35. #endregion // Properties
  36. }
  37. }