Beispiel #1
0
 public Statistics(ActiveTime reference)
 {
     Activity = new ActiveTime(reference);
     ActivityPerHour = new TimePerHour();
     KeyboardStatistics = new KeyboardStatistics(Activity, ActivityPerHour);
     MouseStatistics = new MouseStatistics(Activity, ActivityPerHour, 1);
     InterruptionsPerHour = new CountPerHour();
     WindowSwitchesPerHour = new CountPerHour();
 }
Beispiel #2
0
 public Statistics(ActiveTime reference)
 {
     Stats                       = new GenericStats();
     Stats.Activity              = new ActiveTime(reference);
     Stats.ActivityPerHour       = new TimePerHour();
     KeyboardStatistics          = new KeyboardStatistics(Stats.Activity, Stats.ActivityPerHour);
     MouseStatistics             = new MouseStatistics(Stats.Activity, Stats.ActivityPerHour, SystemParameters.VirtualScreenWidth / SystemParameters.VirtualScreenHeight);
     Stats.InterruptionsPerHour  = new CountPerHour();
     Stats.WindowSwitchesPerHour = new CountPerHour();
 }
Beispiel #3
0
        public string Report()
        {
            var sb = new StringBuilder();

            sb.AppendLine(ToString());
            sb.AppendLine();

            sb.AppendLine("KEYBOARD");
            sb.Append(KeyboardStatistics.ToString());
            sb.AppendLine();

            sb.AppendLine("MOUSE");
            sb.Append(MouseStatistics.ToString());
            sb.AppendLine();

            return(sb.ToString());
        }
Beispiel #4
0
 public void MouseUp(MouseButton mb)
 {
     MouseStatistics.MouseUp(mb);
 }
Beispiel #5
0
 public void MouseMove(Point pt)
 {
     MouseStatistics.MouseMove(pt);
     RegisterActivity();
 }
Beispiel #6
0
 public void MouseDown(MouseButton mb)
 {
     MouseStatistics.MouseDown(mb);
     RegisterActivity();
 }
Beispiel #7
0
 public void MouseDblClk()
 {
     MouseStatistics.MouseDblClk();
     RegisterActivity();
 }
Beispiel #8
0
 public void MouseWheel()
 {
     MouseStatistics.MouseWheel();
     RegisterActivity();
 }