private void DocEventsOnDocumentOpened(Document document)
 {
     try
     {
         WakaTime.HandleActivity(document.FullName, false, GetProjectName());
     }
     catch (Exception ex)
     {
         WakaTime.Logger.Error("DocEventsOnDocumentOpened", ex);
     }
 }
 private static void ApplicationOnWorkbookActivate(Excel.Workbook wb)
 {
     try
     {
         WakaTime.HandleActivity(wb.FullName, false, string.Empty);
     }
     catch (Exception ex)
     {
         WakaTime.Logger.Error("ApplicationOnWorkbookActivate", ex);
     }
 }
 private static void ApplicationOnSlideShowOnPrevious(PowerPoint.SlideShowWindow wn)
 {
     try
     {
         WakaTime.HandleActivity(wn.Presentation.FullName, false, string.Empty);
     }
     catch (Exception ex)
     {
         WakaTime.Logger.Error("ApplicationOnSlideShowOnPrevious", ex);
     }
 }
Beispiel #4
0
        private void DocEventsOnDocumentOpened(Document document)
        {
            try
            {
                var category = _isBuildRunning
                        ? HeartbeatCategory.Building
                        : _dte.Debugger.CurrentMode == dbgDebugMode.dbgBreakMode
                            ? HeartbeatCategory.Debugging
                            : HeartbeatCategory.Coding;

                _wakatime.HandleActivity(document.FullName, false, GetProjectName(), category);
            }
            catch (Exception ex)
            {
                _logger.Error("DocEventsOnDocumentOpened", ex);
            }
        }