Beispiel #1
0
        private ToolStripMenuItem GetNameProviderPluginPreferenceMenuItem(INameProviderPlugin plugin)
        {
            var image = plugin.Icon != null?plugin.Icon.ToBitmap() : null;

            var item = new ToolStripMenuItem(plugin.Name, image, (sender, args) => EditPreferences(plugin));

            return(item);
        }
Beispiel #2
0
 public MockPluginRepository()
 {
     Count                   = 0;
     PluginsByType           = new IPlugin[0];
     DiscReaderPlugins       = new IDiscReaderPlugin[0];
     MetadataProviderPlugins = new IMetadataProviderPlugin[0];
     AutoDetectorPlugins     = new IAutoDetectorPlugin[0];
     NameProviderPlugins     = new INameProviderPlugin[0];
     MuxerPlugins            = new IMuxerPlugin[0];
     PostProcessorPlugins    = new IPostProcessorPlugin[0];
 }
Beispiel #3
0
 private void Rename(CancellationToken cancellationToken, INameProviderPlugin plugin)
 {
     RunPluginSync(cancellationToken, plugin, token => plugin.Rename(token, Job));
 }
Beispiel #4
0
 private ToolStripMenuItem GetNameProviderPluginPreferenceMenuItem(INameProviderPlugin plugin)
 {
     var image = plugin.Icon != null ? plugin.Icon.ToBitmap() : null;
     var item = new ToolStripMenuItem(plugin.Name, image, (sender, args) => EditPreferences(plugin));
     return item;
 }
Beispiel #5
0
 private void Rename(CancellationToken cancellationToken, INameProviderPlugin plugin)
 {
     RunPluginSync(cancellationToken, plugin, token => plugin.Rename(token, Job));
 }