private void timer_Tick(object sender, EventArgs e) { if (Parameters.TrackActivity == true) { ActivitySnapshot snapshot = monitor.GetActivitySnapshot(); ActivityTracker.RegisterSnapshot(snapshot); this.RefreshStatus(snapshot); } }
private void timer_Tick(object sender, EventArgs e) { if (!Parameters.TrackActivity) { return; } var snapshot = monitor.GetActivitySnapshot(); ActivityTracker.RegisterSnapshot(snapshot); nextPoint.Text = ActivityTracker.GetTimePoint(snapshot.Time, 300).ToShortTimeString(); RefreshStatus(snapshot); }