ExcelDna.Integration.DnaLibrary.AutoOpen C# (CSharp) Method

AutoOpen() private method

private AutoOpen ( ) : void
return void
        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?
                    Debug.Print(e.Message);
                }
            }

            // Load my UI
            LoadCustomUI();
        }