private void toolStripButton_pause_Click(object sender, EventArgs e) { Tracked.HandlerPartent = HandlerParent; if (Tracked.TrackingState == Tracked.TimerState.Paused) { toolStripButton_start.Enabled = false; toolStripButton_pause.Enabled = true; toolStripButton_stop.Enabled = true; toolStripButton_delete.Enabled = true; toolStripButton_pause.Image = imageList2.Images["pause"]; toolStripButton_pause.Text = @"Pause"; TrackedActions.pause_tracking(GetEditorController(), Timer4ActivityViewerArea); } else { toolStripButton_start.Enabled = false; toolStripButton_pause.Enabled = true; toolStripButton_stop.Enabled = true; toolStripButton_delete.Enabled = true; toolStripButton_pause.Image = imageList2.Images["unpause"]; toolStripButton_pause.Text = @"Unpause"; toolStripButton_pause.ToolTipText = @"Unpause Activity Tracking"; TrackedActions.pause_tracking(GetEditorController(), Timer4ActivityViewerArea); } }
private void toolStripButton_delete_Click(object sender, EventArgs e) { try { Tracked.HandlerPartent = HandlerParent; toolStripButton_start.Enabled = false; toolStripButton_pause.Enabled = false; toolStripButton_stop.Enabled = false; toolStripButton_delete.Enabled = false; toolStripButton_pause.Image = imageList2.Images["pause"]; toolStripButton_pause.Text = @"Pause"; toolStripButton_pause.ToolTipText = @"Pause Activity Tracking"; } finally { TrackedActions.cancel_tracking(GetEditorController(), Timer4ActivityViewerArea); } }
public void Warn(TrackedActions action, string format, params object[] args) { WarnInternal(action, format, args); }
public void Error(TrackedActions action, Exception exception) { ErrorInternal(action, exception); }
public void Info(TrackedActions action, string format, params object[] args) { InfoInternal(action, format, args); }