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(); }
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(); }
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()); }
public void MouseUp(MouseButton mb) { MouseStatistics.MouseUp(mb); }
public void MouseMove(Point pt) { MouseStatistics.MouseMove(pt); RegisterActivity(); }
public void MouseDown(MouseButton mb) { MouseStatistics.MouseDown(mb); RegisterActivity(); }
public void MouseDblClk() { MouseStatistics.MouseDblClk(); RegisterActivity(); }
public void MouseWheel() { MouseStatistics.MouseWheel(); RegisterActivity(); }