public void Close(EndCode code) { if(this.pluginClient != null) { try { this.pluginClient.Close(code); } catch(Exception exception) { PluginManager.HandlePluginException(exception, IntPtr.Zero, this.pluginInfo.Name, "Closing plugin."); } this.pluginClient = null; } this.pluginInfo = null; }
public void Close(EndCode code) { if (this.pluginClient != null) { try { this.pluginClient.Close(code); } catch (Exception exception) { PluginManager.HandlePluginException(exception, IntPtr.Zero, this.pluginInfo.Name, "Closing plugin."); } this.pluginClient = null; } this.pluginInfo = null; }
public Plugin(IPluginClient pluginClient, QTTabBarLib.PluginInformation pluginInfo) { this.pluginClient = pluginClient; this.pluginInfo = pluginInfo; this.fBackgroundButtonIsSupported = ((pluginInfo.PluginType == PluginType.Background) && ((pluginClient is IBarButton) || (pluginClient is IBarCustomItem))) || ((pluginInfo.PluginType == PluginType.BackgroundMultiple) && (pluginClient is IBarMultipleCustomItems)); }