public void method_6() { this._pluginConfigPanel = new Dictionary <string, FrameworkElement>(); this.LoadedPlugin = PluginLoader.GetPlugin(this.Plugin); this.dictionary_1 = this.LoadedPlugin.GetControlPanel(MySettings.Instance.LoadPluginSettingsFile(this.website_0.PluginSettingsFilePath)); this.ExtraPanel = this.method_3(this.LoadedPlugin); }
public UserControl method_3(ITrPlugin itrPlugin_1) { UserControl userControl = new UserControl(); StackPanel stackPanel = new StackPanel(); foreach (KeyValuePair <string, PluginOption> keyValuePair in this.dictionary_1) { stackPanel.Children.Add(this.method_2(keyValuePair.Key, keyValuePair.Value)); } userControl.Content = (object)stackPanel; return(userControl); }
public static void Init(string path) { PluginLoader.idictionary_0 = (IDictionary <string, ITrPlugin>) new Dictionary <string, ITrPlugin>(); if (!Directory.Exists(path)) { return; } string[] files = Directory.GetFiles(path, "TumblRipper.Plugins.*.dll"); List <Assembly> list = new List <Assembly>(files.Length); foreach (string assemblyFile in files) { foreach (Type type in Assembly.Load(AssemblyName.GetAssemblyName(assemblyFile)).GetTypes()) { if (type.IsClass && !type.IsNotPublic && type.GetInterfaces().Contains((object)typeof(ITrPlugin))) { ITrPlugin trPlugin = (ITrPlugin)Activator.CreateInstance(type); PluginLoader.idictionary_0.Add(trPlugin.GetName(), trPlugin); } } } }
public static Task Start(IWebsite w, CancellationToken ct) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type Controller.Class2 class2 = new Controller.Class2(); Controller.cancellationToken_0 = ct; Ripper ripper = new Ripper(w); // ISSUE: reference to a compiler-generated field class2.itrPlugin_0 = PluginLoader.GetPlugin(w.PluginInName); // ISSUE: reference to a compiler-generated field if (class2.itrPlugin_0 == null) { return((Task)null); } // ISSUE: reference to a compiler-generated field class2.itrPlugin_0.NewInstance((IRipper)ripper, MySettings.Instance.LoadPluginSettingsFile(w.PluginSettingsFilePath)); // ISSUE: reference to a compiler-generated field Controller.itrPlugin_0 = class2.itrPlugin_0; // ISSUE: reference to a compiler-generated method Controller.task_0 = Task.Factory.StartNew(new Action(class2.method_0), Controller.cancellationToken_0); return(Controller.task_0); }