Changeset 1815 for trunk/eraser6/Eraser.Manager/Plugins.cs
- Timestamp:
- 2/12/2010 1:04:52 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/eraser6/Eraser.Manager/Plugins.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.Manager/Plugins.cs
r1802 r1815 258 258 } 259 259 260 //Initialize the plugin 261 IPlugin pluginInterface = (IPlugin)Activator.CreateInstance( 262 instance.Assembly.GetType(typePlugin.ToString())); 263 pluginInterface.Initialize(this); 264 instance.Plugin = pluginInterface; 265 266 //And broadcast the plugin load event 267 OnPluginLoaded(this, new PluginLoadedEventArgs(instance)); 260 try 261 { 262 //Initialize the plugin 263 IPlugin pluginInterface = (IPlugin)Activator.CreateInstance( 264 instance.Assembly.GetType(typePlugin.ToString())); 265 pluginInterface.Initialize(this); 266 instance.Plugin = pluginInterface; 267 268 //And broadcast the plugin load event 269 OnPluginLoaded(this, new PluginLoadedEventArgs(instance)); 270 } 271 catch (System.Security.SecurityException e) 272 { 273 MessageBox.Show(S._("Could not load the plugin {0}.\n\nThe error returned was: {1}", 274 filePath, e.Message), S._("Eraser"), MessageBoxButtons.OK, MessageBoxIcon.Error, 275 MessageBoxDefaultButton.Button1, Localisation.IsRightToLeft(null) ? 276 MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0); 277 } 268 278 } 269 279
Note: See TracChangeset
for help on using the changeset viewer.
