예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }