Esempio n. 1
0
 private void onGlobalStartKeyPressed(object sender, HotkeyEventArgs args)
 {
     if (this.IsTracking)
     {
         using (Performance.Measure("stopping time entry from global short cut", this.IsInManualMode))
         {
             Toggl.Stop();
         }
     }
     else
     {
         using (Performance.Measure("starting time entry from global short cut, manual mode: {0}", this.IsInManualMode))
         {
             KeyboardShortcuts.StartTimeEntry(true);
         }
     }
 }