packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectWatcher.cs
/// <summary>
/// Processes all change notifications sent by the Windows Shell.
/// </summary>
/// <param name="e">The windows message representing the notification event</param>
Processes all change notifications sent by the Windows Shell.
Processes all change notifications sent by the Windows Shell .
protected virtual void ProcessChangeNotificationEvent(WindowMessageEventArgs e)
        {
            if (!Running) { return; }
            if (e == null) { throw new ArgumentNullException("e"); }
            ChangeNotifyLock notifyLock = new ChangeNotifyLock(e.Message);
            ShellObjectNotificationEventArgs args = null;
            switch (notifyLock.ChangeType)
            {
                case ShellObjectChangeTypes.DirectoryRename:
                case ShellObjectChangeTypes.ItemRename:
                    args = new ShellObjectRenamedEventArgs(notifyLock);
                    break;
                case ShellObjectChangeTypes.SystemImageUpdate:
                    args = new SystemImageUpdatedEventArgs(notifyLock);
                    break;
                default:
                    args = new ShellObjectChangedEventArgs(notifyLock);
                    break;
            }
            _manager.Invoke(this, notifyLock.ChangeType, args);
        }
protected virtual void ProcessChangeNotificationEvent ( WindowMessageEventArgs e ) { if ( ! Running ) { return ; } if ( e == null ) { throw new ArgumentNullException ( " " ) ; } ChangeNotifyLock notifyLock = new ChangeNotifyLock ( e . Message ) ; ShellObjectNotificationEventArgs args = null ; switch ( notifyLock . ChangeType ) { case ShellObjectChangeTypes . DirectoryRename : case ShellObjectChangeTypes . ItemRename : args = new ShellObjectRenamedEventArgs ( notifyLock ) ; break ; case ShellObjectChangeTypes . SystemImageUpdate : args = new SystemImageUpdatedEventArgs ( notifyLock ) ; break ; default : args = new ShellObjectChangedEventArgs ( notifyLock ) ; break ; } _manager . Invoke ( this , notifyLock . ChangeType , args ) ; }
Processes all change notifications sent by the Windows Shell.
Processes all change notifications sent by the Windows Shell .
e
WindowMessageEventArgs
The windows message representing the notification event
The windows message representing the notification event