Inheritance: EditorWindow
コード例 #1
0
 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);
     }
 }
コード例 #2
0
ファイル: WakaTime.cs プロジェクト: gandarez/ssms-wakatime
 private void WindowsEventsOnWindowActivated(Window gotFocus, Window lostFocus)
 {
     try
     {
         if (gotFocus.Document != null)
             HandleActivity(gotFocus.Document.FullName, false);
     }
     catch (Exception ex)
     {
         Logger.Error("WindowsEventsOnWindowActivated", ex);
     }
 }