Exemple #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();
 }
Exemple #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();
 }
Exemple #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());
        }
Exemple #4
0
 public void MouseUp(MouseButton mb)
 {
     MouseStatistics.MouseUp(mb);
 }
Exemple #5
0
 public void MouseMove(Point pt)
 {
     MouseStatistics.MouseMove(pt);
     RegisterActivity();
 }
Exemple #6
0
 public void MouseDown(MouseButton mb)
 {
     MouseStatistics.MouseDown(mb);
     RegisterActivity();
 }
Exemple #7
0
 public void MouseDblClk()
 {
     MouseStatistics.MouseDblClk();
     RegisterActivity();
 }
Exemple #8
0
 public void MouseWheel()
 {
     MouseStatistics.MouseWheel();
     RegisterActivity();
 }