public TouchAnalyzer(MainWindow window, SoftKeyboard keyboard) { this.window = window; this.keyboard = keyboard; screenHandPoints = new Dictionary<int, HandPoint>(); this.behaviorLog = new Log(window, true); this.behaviorLog.setTasks(window.task); }
public Log(MainWindow window, bool isBehavior = false) { this.window = window; this.isBehavior = isBehavior; this.statusAnalyzer = new StatusAnalyze(window); logDir = Directory.GetCurrentDirectory() + "\\logs\\" + Config.userName+ Config.startTime.ToString("_MM_dd_HH_mm_ss"); if (!Directory.Exists(logDir)) { Directory.CreateDirectory(logDir); } logList = new List<LogRecord>(); this.accelerometer = Accelerometer.GetDefault(); this.inclinometer = Inclinometer.GetDefault(); //this.inclinometer.ReadingChanged += onInclinometerReadingChanged; this.gyrometer = Gyrometer.GetDefault(); this.orientationSensor = OrientationSensor.GetDefault(); this.compass = Compass.GetDefault(); this.lightsensor = LightSensor.GetDefault(); }
public StatusAnalyze(MainWindow window) { this.window = window; this.logWindow = new Queue<LogRecord>(); }