示例#1
0
        public static void AddHiscores(ModeloDeHiscores hiscores)
        {
            ComerestusDbContext context = new ComerestusDbContext();

            context.ModeloDeHiscores.Add(hiscores);
            context.SaveChanges();
        }
示例#2
0
        public int CompareTo(object obj)
        {
            ModeloDeHiscores hiscores2 = (ModeloDeHiscores)obj;

            if (hiscores2.MoedasDeOuro > MoedasDeOuro)
            {
                return(1);
            }
            if (hiscores2.MoedasDeOuro == MoedasDeOuro)
            {
                return(0);
            }
            return(-1);
        }