예제 #1
0
 //--------------------------------------------------------------------------------
 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();
     }
 }
예제 #2
0
        /// <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();
            }
        }
예제 #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void fswe_EventPathAvailability(object sender, PathAvailablitiyEventArgs e)
 {
     ReloadFilesOfExtensionInvoke();
 }