示例#1
0
        public static void AdicionarScore(HiScores novoScore)
        {
            HiScoresDbContext context = new HiScoresDbContext();

            context.Scores.Add(novoScore);
            context.SaveChanges();
        }
示例#2
0
        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);
 }