public static void AdicionarScore(HiScores novoScore) { HiScoresDbContext context = new HiScoresDbContext(); context.Scores.Add(novoScore); context.SaveChanges(); }
public int CompareTo(object obj) { HiScores j = (HiScores)obj; if (MoedasOuroTotal > j.MoedasOuroTotal) { return(1); } else if (MoedasOuroTotal < j.MoedasOuroTotal) { return(-1); } else { return(0); } }
public static void AdicionarScore(HiScores novoScore) { score.Add(novoScore); }