/// <summary> /// 存储数据 /// </summary> /// <param name="rankname">排行榜名.</param> /// <param name="isOrder">If set to <c>true</c> 正序/逆序.</param> public void SaveTheRank(string rankname, bool isOrder = true) { L_RankData rankData = RootData.FindChild(rankname); OrderRank(rankData, isOrder); // 排序 if (rankData != null) { XmlTool.SaveData <L_RankData>(rankData, FilePath + rankname); } }