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 KeyDown(string key) { KeyboardStatistics.KeyDown(key); RegisterActivity(); }