Наследование: 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);
 }
Пример #2
0
 private static ICTPFactory GetCTPFactory()
 {
     if (_addin == null)
     {
         // Register and create addin
         _addin = new ExcelCustomTaskPaneAddIn { DnaLibrary = DnaLibrary.CurrentLibrary };
         ExcelComAddInHelper.LoadComAddIn(_addin);
     }
     return _addin.Factory;
 }
Пример #3
0
 internal static void DetachAddIn()
 {
     _addin = null;
 }
 internal static void DetachAddIn()
 {
     _addin = null;
 }