示例#1
0
        /// <summary>
        /// Create a new instance of the tracking class for an inspector
        /// </summary>
        /// <param name="inspector">The new inspector window to monitor</param>
        ///<remarks></remarks>
        public OutlookInspector(Outlook.Inspector inspector)
            : base(inspector)
        {
            _CurrentItem = new OutlookItem(inspector.CurrentItem);

            // Hookup events
            ((Outlook.InspectorEvents_10_Event) this.Window).Close +=
                new Outlook.InspectorEvents_10_CloseEventHandler(OutlookInspector_Close);
        }
示例#2
0
        /// <summary>
        /// Event Handler for the inspector close event.
        /// </summary>
        private void OutlookInspector_Close()
        {
            ((Outlook.InspectorEvents_10_Event) this.Window).Close -=
                new Outlook.InspectorEvents_10_CloseEventHandler(OutlookInspector_Close);

            _CurrentItem = null;

            // Raise the window close event
            FireOnClose();
        }