Exemple #1
0
        public void AddScore(Score score)
        {
            data.GetTable<Score>().InsertOnSubmit(score);
            data.SubmitChanges();

            scores.Add(score);
        }
Exemple #2
0
 public void CreateScore(string name, int score)
 {
     int id;
     if (lastScore > 0)
         id = lastScore += 1;
     else
         id = GetId();
     lastScore = id;
     Score newscore = new Score(id, name, score);
     AddScore(newscore);
 }