コード例 #1
0
 public void AddListener(IFileSystemWatchListener fileSystemWatchListener)
 {
     Changed += fileSystemWatchListener.OnChange;
     Created += fileSystemWatchListener.OnCreate;
     Deleted += fileSystemWatchListener.OnDelete;
     Renamed += fileSystemWatchListener.OnRename;
     Error   += fileSystemWatchListener.OnError;
 }
コード例 #2
0
 public void RemoveListener(IFileSystemWatchListener fileSystemWatchListener)
 {
     Changed -= fileSystemWatchListener.OnChange;
     Created -= fileSystemWatchListener.OnCreate;
     Deleted -= fileSystemWatchListener.OnDelete;
     Renamed -= fileSystemWatchListener.OnRename;
     Error   -= fileSystemWatchListener.OnError;
 }
コード例 #3
0
        public void RemoveListener(IFileSystemWatchListener fileSystemWatchListener)
        {
            if (fileSystemWatchListener == null)
            {
                return;
            }

            Changed -= fileSystemWatchListener.OnChange;
            Created -= fileSystemWatchListener.OnCreate;
            Deleted -= fileSystemWatchListener.OnDelete;
            Renamed -= fileSystemWatchListener.OnRename;
            Error   -= fileSystemWatchListener.OnError;
        }