Inheritance: ExcelDna.Integration.CustomUI.ExcelComAddIn, ICustomTaskPaneConsumer
 private static ICTPFactory GetCTPFactory()
 {
     if (_addin == null)
     {
         // Register and create addin
         _addin = new ExcelCustomTaskPaneAddIn {
             DnaLibrary = DnaLibrary.CurrentLibrary
         };
         ExcelComAddInHelper.LoadComAddIn(_addin);
     }
     return(_addin.Factory);
 }
 private static ICTPFactory GetCTPFactory()
 {
     if (_addin == null)
     {
         // Register and create addin
         _addin = new ExcelCustomTaskPaneAddIn { DnaLibrary = DnaLibrary.CurrentLibrary };
         ExcelComAddInHelper.LoadComAddIn(_addin);
     }
     return _addin.Factory;
 }
 internal static void DetachAddIn()
 {
     _addin = null;
 }
 internal static void DetachAddIn()
 {
     _addin = null;
 }