private void Load() { try { var pluginHost = new PluginHostProxy { Is64Bit = (Bitness == 64) }; var plugin = pluginHost.LoadPlugin(AssemblyName, ClassName); Plugins.Add(plugin); SelectedPlugin = plugin; } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButton.OK, MessageBoxImage.Error); } }
private void Load() { try { var pluginHost = new PluginHostProxy { Is64Bit = (Bitness == 64), JobObject = new JobManagement.Job() }; var plugin = pluginHost.LoadPlugin(AssemblyName, ClassName); plugin.Disposed += plugin_Disposed; plugin.MessageFromPlugin += plugin_MessageFromPlugin; Plugins.Add(plugin); SelectedPlugin = plugin; } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButton.OK, MessageBoxImage.Error); } }