// Click to display the achievements of this one person private void okay_Click(object sender, RoutedEventArgs e) { // read the achievements from AchievementSystem // if this person exists if (AchievementSystem.ExistUser(name.Text)) { areYouSomebody.Content = name.Text; var state = AchievementSystem.GetAchievementState(name.Text); // display the achievments HighScore.Content = state.HighScore.ToString(); TotalClearBar.Content = state.TotalClearBar.ToString(); SeqClear.Content = (state.SeqClear ? "完成" : "还没有"); HardSurvive.Content = (state.HardSurvive ? "完成" : "还没有"); } else { areYouSomebody.Content = "你谁啊?"; HighScore.Content = "0"; TotalClearBar.Content = "0"; SeqClear.Content = "还没有"; HardSurvive.Content = "还没有"; } }