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); } }
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); } }