//-------------------------------------------------------------------------------- void watcher_EventPathAvailability(object sender, PathAvailablitiyEventArgs e) { Debug.WriteLine("EVENT - PathAvailability"); EventPathAvailability(this, new WatcherExEventArgs(sender as FileSystemWatcherEx, e, ArgumentType.PathAvailability)); if (e.PathIsAvailable) { DisposeWatchers(); Initialize(); } }
/// <summary> /// Handles the EventPathAvailability event of the watcher control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="PathAvailablitiyEventArgs" /> instance containing the event data.</param> private void watcher_EventPathAvailability(object sender, PathAvailablitiyEventArgs e) { EventPathAvailability(this, new WatcherExEventArgs(sender as FileSystemWatcherEx, e, FileWatcherArgumentTypes.PathAvailability)); if (e.PathIsAvailable) { DisposeWatchers(); Initialize(); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void fswe_EventPathAvailability(object sender, PathAvailablitiyEventArgs e) { ReloadFilesOfExtensionInvoke(); }