RegisterMethods() public static method

public static RegisterMethods ( List methods ) : void
methods List
return void
Ejemplo n.º 1
0
        // Only called for the Root DnaLibrary.
        internal void AutoOpen()
        {
            // Register special RegistrationInfo function
            RegistrationInfo.Register();
            SynchronizationManager.Install();
            // Register my Methods
            ExcelIntegration.RegisterMethods(_methods);

            // Invoke AutoOpen in all assemblies
            foreach (AssemblyLoader.ExcelAddInInfo addIn in _addIns)
            {
                try
                {
                    if (addIn.AutoOpenMethod != null)
                    {
                        addIn.AutoOpenMethod.Invoke(addIn.Instance, null);
                    }
                }
                catch (Exception e)
                {
                    // TODO: What to do here?
                    Logger.Initialization.Error(e, "DnaLibrary AutoOpen Error");
                }
            }

            LoadCustomUI();
        }
Ejemplo n.º 2
0
        internal void AutoOpen()
        {
            // Register my Methods
            ExcelIntegration.RegisterMethods(_methods);

            // Invoke AutoOpen in all assemblies
            foreach (AssemblyLoader.ExcelAddInInfo addIn in _addIns)
            {
                try
                {
                    if (addIn.AutoOpenMethod != null)
                    {
                        addIn.AutoOpenMethod.Invoke(addIn.Instance, null);
                    }
                }
                catch (Exception e)
                {
                    // TODO: What to do here?
                    Debug.Print(e.Message);
                }
            }

            // Load my UI
            LoadCustomUI();
        }
Ejemplo n.º 3
0
        // Only called for the Root DnaLibrary.
        internal void AutoOpen()
        {
            // Register special RegistrationInfo function
            RegistrationInfo.Register();
            SynchronizationManager.Install(true);
            // Register my Methods - should this also go into the delayed call?
            ExcelIntegration.RegisterMethods(_methods);

            // We defer the rest of the load until we have an Application object...
            ExcelAsyncUtil.QueueAsMacro(AutoOpenImpl);
        }
Ejemplo n.º 4
0
 public static void RegisterMethods(List <MethodInfo> methods)
 {
     ExcelIntegration.RegisterMethods(methods);
 }
 public override void RegisterMethods(List <MethodInfo> methods)
 {
     ExcelIntegration.RegisterMethods(methods);
 }