/// <summary> /// Loads the plugins absoloutley. /// </summary> /// <param name="_pluginTypes">A list of the plugin types.</param> /// <returns>Returns a list of plugins.</returns> public static ICollection <DeskFrameLib.IDeskFrameView> LoadPlugins(ICollection <Type> _pluginTypes) { // Plugin Collection. ICollection <IDeskFrameView> plugins = new List <IDeskFrameView>(_pluginTypes.Count); foreach (Type type in _pluginTypes) { // Prepare loading. IDeskFrameView plugin = (IDeskFrameView)Activator.CreateInstance(type); plugins.Add(plugin); } return(plugins); }
public Injector(IDeskFrameView view) { // Todo: Init. // Todo: Windows Version Detect. _activeView = view; _activeForm = view.view; // Spawn in workerw. SpawnWorkerw(); // Get the workerw. IntPtr workerw = GetWorkerw(); // Assign our form as a child. Loadin(workerw, _activeForm); _hasInjected = true; }