示例#1
0
 private void timer_Tick(object sender, EventArgs e)
 {
     if (Parameters.TrackActivity == true)
     {
         ActivitySnapshot snapshot = monitor.GetActivitySnapshot();
         ActivityTracker.RegisterSnapshot(snapshot);
         this.RefreshStatus(snapshot);
     }
 }
示例#2
0
        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);
        }