private void WindowEventsOnWindowActivated(Window gotFocus, Window lostFocus) { try { var document = _objDte.ActiveWindow.Document; if (document != null) HandleActivity(document.FullName, false); } catch (Exception ex) { Logger.Error("WindowEventsOnWindowActivated", ex); } }
private void WindowsEventsOnWindowActivated(Window gotFocus, Window lostFocus) { try { if (gotFocus.Document != null) HandleActivity(gotFocus.Document.FullName, false); } catch (Exception ex) { Logger.Error("WindowsEventsOnWindowActivated", ex); } }