コード例 #1
0
 FileSystemWatcherEventArgs(FileSystemWatcherObject target, FileSystemWatcherObject oldTargetStat, ActionType actionType)
 {
     date          = DateTime.Now;
     Target        = target;
     OldTargetStat = oldTargetStat;
     ActionType    = actionType;
 }
コード例 #2
0
 public static FileSystemWatcherEventArgs CreateContentChangedEvent(FileSystemWatcherObject target)
 {
     return(new FileSystemWatcherEventArgs(target, ActionType.ContentChanged));
 }
コード例 #3
0
 public static FileSystemWatcherEventArgs CreateRenamedEvent(FileSystemWatcherObject target, FileSystemWatcherObject oldTargetStat)
 {
     return(new FileSystemWatcherEventArgs(target, oldTargetStat, ActionType.Renamed));
 }
コード例 #4
0
 public static FileSystemWatcherEventArgs CreateDeletedEvent(FileSystemWatcherObject target)
 {
     return(new FileSystemWatcherEventArgs(target, ActionType.Deleted));
 }