public bool AttachFormRegion(
            Outlook.Inspector inspector,
            IFormRegionControls formRegionControls)
        {
            bool updateOK = false;

            // 在容器的集合中查找此检查器。
            UserInterfaceContainer uiContainer =
                GetUIContainerForInspector(inspector);
            if (uiContainer != null)
            {
                uiContainer.FormRegionControls = formRegionControls;
                updateOK = true;
            }
            return updateOK;
        }
        public bool AttachFormRegion(
            Outlook.Inspector inspector,
            IFormRegionControls formRegionControls)
        {
            bool updateOK = false;

            // Find this inspector in the our collection of containers.
            UserInterfaceContainer uiContainer =
                GetUIContainerForInspector(inspector);

            if (uiContainer != null)
            {
                uiContainer.FormRegionControls = formRegionControls;
                updateOK = true;
            }
            return(updateOK);
        }
Beispiel #3
0
        public bool AttachFormRegion(
            Outlook.Inspector inspector,
            IFormRegionControls formRegionControls)
        {
            bool updateOK = false;

            // 在容器的集合中查找此检查器。
            UserInterfaceContainer uiContainer =
                GetUIContainerForInspector(inspector);

            if (uiContainer != null)
            {
                uiContainer.FormRegionControls = formRegionControls;
                updateOK = true;
            }
            return(updateOK);
        }
Beispiel #4
0
        void _inspectorEvents_Close()
        {
            // Remove ourselves from the collection of UI objects,
            // unhook the Close event, and clean up all references.
            _inspectorEvents.Close -=
                new Outlook.InspectorEvents_10_CloseEventHandler(
                    _inspectorEvents_Close);

            if (InspectorClose != null)
            {
                // Tell anyone who's listening that we're being closed.
                InspectorClose(this, new EventArgs());
            }

            _inspector          = null;
            _inspectorEvents    = null;
            _taskPane           = null;
            _formRegionControls = null;
            _ribbonConnector    = null;
        }
Beispiel #5
0
        void _inspectorEvents_Close()
        {
            // 将我们自身从 UI 对象集合中移除,
            // 解除挂钩关闭事件,然后清理所有引用。
            _inspectorEvents.Close -=
                new Outlook.InspectorEvents_10_CloseEventHandler(
                    _inspectorEvents_Close);

            if (InspectorClose != null)
            {
                // 告诉所有侦听方我们正在关闭。
                InspectorClose(this, new EventArgs());
            }

            _inspector          = null;
            _inspectorEvents    = null;
            _taskPane           = null;
            _formRegionControls = null;
            _ribbonConnector    = null;
        }
        void _inspectorEvents_Close()
        {
            // 将我们自身从 UI 对象集合中移除,
            // 解除挂钩关闭事件,然后清理所有引用。
            _inspectorEvents.Close -=
                new Outlook.InspectorEvents_10_CloseEventHandler(
                _inspectorEvents_Close);

            if (InspectorClose != null)
            {
                // 告诉所有侦听方我们正在关闭。
                InspectorClose(this, new EventArgs());
            }

            _inspector = null;
            _inspectorEvents = null;
            _taskPane = null;
            _formRegionControls = null;
            _ribbonConnector = null;
        }