private void inspectors_NewInspector(RlOutlook.Inspector Inspector) { #if (COMRELEASE) System.Runtime.InteropServices.Marshal.ReleaseComObject(Inspector); #endif OutlookInspector inspector = new OutlookInspector(inspectors[inspectors.Count]); OnInspectorOpen(inspector); }
private void OnInspectorOpen(OutlookInspector inspector) { inspectorCache.Add(inspector); inspector.Closed += inspectorCloseEvent; OnWindowOpen(inspector); if (InspectorOpen != null) { InspectorOpen(inspector); } }
private void OnInspectorClose(OutlookInspector inspector) { OnWindowClose(inspector); if (InspectorClose != null) { InspectorClose(inspector); } inspectorCache.Remove(inspector); if ((explorerCache.Count == 0) && (inspectorCache.Count == 0)) { OnOutlookClose(); } }