protected override object RequestService(Guid serviceGuid) { if (serviceGuid == typeof(Office.IRibbonExtensibility).GUID) { return _ribbon ?? (_ribbon = new GnuPGRibbon()); } return base.RequestService(serviceGuid); }
protected override object RequestService(Guid serviceGuid) { if (serviceGuid == typeof(Office.IRibbonExtensibility).GUID) { if (ribbon == null) ribbon = new GnuPGRibbon(); return ribbon; } return base.RequestService(serviceGuid); }