public bool Load(string path) { GrimoirePlugin grimoirePlugin = null; if (File.Exists(path)) { grimoirePlugin = new GrimoirePlugin(path); if (grimoirePlugin.Load()) { this.LoadedPlugins.Add(grimoirePlugin); return(true); } } this.LastError = ((grimoirePlugin != null) ? grimoirePlugin.LastError : null); return(false); }
public bool Load(string path) { GrimoirePlugin plugin = null; if (File.Exists(path)) { plugin = new GrimoirePlugin(path); if (plugin.Load()) { LoadedPlugins.Add(plugin); return(true); } } LastError = plugin?.LastError; return(false); }