public void ScoresUpdated(MNScoreProgressProvider.ScoreItem[] scoreBoard) { PlaceIndicator = ""; bool meFlag = false; foreach (MNScoreProgressProvider.ScoreItem scoreItem in scoreBoard) { if (scoreItem.UserInfo.UserId == currentUserInfo.UserId) { meFlag = true; } else { meFlag = false; } PlaceIndicator += string.Format("{0}\t{1}. {2}\t\t{3}\n",meFlag?"me->":" ",scoreItem.Place,scoreItem.UserInfo.UserName,scoreItem.Score); } }
public static Hashtable MNScoreProgressProviderScoreItemToDictionary(MNScoreProgressProvider.ScoreItem srcObject) { Hashtable result = new Hashtable(3); result["Place"] = srcObject.Place; result["Score"] = srcObject.Score; result["UserInfo"] = MNUserInfoToDictionary(srcObject.UserInfo); return result; }