/* * Update the interface so it contains the resonse the from the participant * ******************************************************************** */ public void SetUserResponseData(UserResponse userResponseData) { if (userResponseData.mCorrect) { // Set the icons to ticks... distance.Tag = "correct"; direction.Tag = "correct"; symbol.Tag = "correct"; //var uri = new Uri("pack://application:,,,/Images/Feedback/CorrectResponse.png"); //var bitmap = new BitmapImage(uri); //ResponseIndicator.Source = bitmap; } else { if (userResponseData.mDistanceCorrect) distance.Tag = "correct"; else distance.Tag = "wrong"; if (userResponseData.mDistanceCorrect) direction.Tag = "correct"; else direction.Tag = "wrong"; if (userResponseData.mSymbolCorrect) symbol.Tag = "correct"; else symbol.Tag = "wrong"; //var uri = new Uri("pack://application:,,,/Images/Feedback/IncorrectResponse.png"); //var bitmap = new BitmapImage(uri); //ResponseIndicator.Source = bitmap; } distance.Content = userResponseData.mDistance; direction.Content = userResponseData.mDirection; symbol.Content = userResponseData.mSymbol; }
public void SetTaskGrade(UserResponse responseData) { DistanceTaskGrade.Value = responseData.mDistanceSkillLevel * 100; DirectionTaskGrade.Value = responseData.mDirectionSkillLevel * 100; SymbolTaskGrade.Value = responseData.mSymbolSkillLevel * 100; }