Register() static private method

static private Register ( ) : void
return void
コード例 #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?
                    Debug.Print(e.Message);
                }
            }

            // Load my UI
            LoadCustomUI();
        }
コード例 #2
0
ファイル: DnaLibrary.cs プロジェクト: zqwght/ExcelDna
        // 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();
        }
コード例 #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);
        }