Ejemplo n.º 1
0
 public void End(GameBase igame)
 {
     try
     {
         using (var db = new DataModelContainer())
         {
             recordBase.AddList(igame.gameField, igame.Type, igame.iteration);
         }
     }
     catch (Exception ex)
     {
         recordBase.ErrorBase(ex);
     }
 }
Ejemplo n.º 2
0
 public void IsData(bool[] boolMenu)
 {
     try
     {
         using (db = new DataModelContainer())
         {
             db.Database.CreateIfNotExists();
             if (db.GameSet.Count() != 0)
             {
                 boolMenu[1] = true;
             }
             else
             {
                 boolMenu[1] = false;
             }
         }
     }
     catch (Exception ex)
     {
         recordBase.ErrorBase(ex);
     }
 }