コード例 #1
0
 /// <summary>
 /// Raises the <see cref="E:FileLost" /> event.
 /// </summary>
 /// <param name="args">The <see cref="PluginDirectoryEventArgs"/> instance containing the event data.</param>
 private void OnFileLost(PluginDirectoryEventArgs args)
 {
     this.log.Debug(Resources.FileLost, args.FullName);
     if (this.FileLost != null)
     {
         FileInfo file = new FileInfo(args.FullName);
         if (string.Compare(file.Extension, ".dll", StringComparison.OrdinalIgnoreCase) == 0)
         {
             this.FileLost(this, args);
         }
     }
 }
コード例 #2
0
 private void PluginDirFileLost(object sender, PluginDirectoryEventArgs e)
 {
     this.Remove(e.FullName);
 }
コード例 #3
0
 private void PluginDirectoryFileFound(object sender, PluginDirectoryEventArgs e)
 {
     this.Add(e.FullName);
 }
コード例 #4
0
 /// <summary>
 /// Raises the <see cref="E:FileLost" /> event.
 /// </summary>
 /// <param name="args">The <see cref="PluginDirectoryEventArgs"/> instance containing the event data.</param>
 private void OnFileLost(PluginDirectoryEventArgs args)
 {
     this.log.Debug(Resources.FileLost, args.FullName);
       if (this.FileLost != null)
       {
     FileInfo file = new FileInfo(args.FullName);
     if (string.Compare(file.Extension, ".dll", StringComparison.OrdinalIgnoreCase) == 0)
       this.FileLost(this, args);
       }
 }
コード例 #5
0
 private void PluginDirFileLost(object sender, PluginDirectoryEventArgs e)
 {
     this.Remove(e.FullName);
 }
コード例 #6
0
 private void PluginDirectoryFileFound(object sender, PluginDirectoryEventArgs e)
 {
     this.Add(e.FullName);
 }