rankList
This commit is contained in:
parent
452ed85339
commit
c55ef57048
@ -13,7 +13,7 @@ namespace Dto
|
||||
public class GroupJumpRopeContext
|
||||
{
|
||||
// 静态字段,保存排名列表
|
||||
//public static List<RankItem> RankList { get; set; } = new List<RankItem>();
|
||||
public static List<RankItem> RankList { get; set; } = new List<RankItem>();
|
||||
public List<(double XNorm, double YNorm)> CirclePositions { get; private set; }
|
||||
public List<SportUserItem> UserList { get; private set; }
|
||||
public List<string> UserNumberList { get; private set; }
|
||||
@ -59,6 +59,8 @@ namespace Dto
|
||||
})
|
||||
.ToList();
|
||||
|
||||
RankList = rankList;
|
||||
|
||||
return rankList;
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,7 +31,7 @@ namespace Views.JumpRope
|
||||
{
|
||||
InitializeComponent();
|
||||
Loaded += UserControl_Loaded;
|
||||
_groupJumpRopeContext = new GroupJumpRopeContext();
|
||||
//_groupJumpRopeContext = new GroupJumpRopeContext();
|
||||
LoadData();
|
||||
}
|
||||
|
||||
@ -73,7 +73,7 @@ namespace Views.JumpRope
|
||||
|
||||
public void LoadData()
|
||||
{
|
||||
ShowRankingBoard(_groupJumpRopeContext.UpdateRankList());
|
||||
ShowRankingBoard(GroupJumpRopeContext.RankList);
|
||||
}
|
||||
public void ShowRankingBoard(List<RankItem> list)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user