/// <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); }
/// <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(); }