private MainController() { _dbController = new SqlLiteController(); //_dataController = new TestDataController(); _dataController = new WiiController(); _personController = new PersonController(_dbController); _dataController.AddSensorDataListener(new MovementRecognitionController()); List<Person> persons = _personController.getPersons(); try { _personController.CurrentPerson = persons[0]; } catch (Exception) { string testDataScript = @"db\DbData.sql"; string sql = File.ReadAllText(testDataScript); _dbController.Execute(sql); persons = _personController.getPersons(); _personController.CurrentPerson = persons[0]; } _notifyMessageMgr = new NotifyMessageManager ( Screen.Width, Screen.Height, 200, 150 ); //_notifyMessageMgr.Start(); }