public bool Load() { ds = new DataService(m_NameDB); IEnumerable <JellyDB> DBs = ds.GetJellyDB(); if (DBs != null) { foreach (JellyDB DB in DBs) { ItemList = DB; } } return(true); }
public void UpdateItemTable_DeviceID(string _ID) { IEnumerable <JellyDB> DBs = ds.GetJellyDB(); if (DBs != null) { foreach (JellyDB DB in DBs) { DB.deviceID = _ID; ItemList = DB; } ds._connection.UpdateAll(DBs); } }
public void UpdateItemTableInitSkinEffectList() { IEnumerable <JellyDB> DBs = ds.GetJellyDB(); if (DBs != null) { foreach (JellyDB DB in DBs) { DB.openSkinList = 524288; DB.openEffectList = 524288; ItemList = DB; } ds._connection.UpdateAll(DBs); } }
public void UpdateItemTable(int _score) { IEnumerable <JellyDB> DBs = ds.GetJellyDB(); if (DBs != null) { foreach (JellyDB DB in DBs) { DB.bestScore = _score; ItemList = DB; } ds._connection.UpdateAll(DBs); } }
public void UpdateItemTable(string _dateTime) { IEnumerable <JellyDB> DBs = ds.GetJellyDB(); if (DBs != null) { foreach (JellyDB DB in DBs) { DB.dateTime = _dateTime; ItemList = DB; } ds._connection.UpdateAll(DBs); } }
public void UpdateItemTable(string _soundVolume, int _vibration) { IEnumerable <JellyDB> DBs = ds.GetJellyDB(); if (DBs != null) { foreach (JellyDB DB in DBs) { DB.soundVolume = _soundVolume; DB.vibration = _vibration; ItemList = DB; } ds._connection.UpdateAll(DBs); } }
public void UpdateItemTable(int _gold, int _bestScore, int _openSkinList, int _currSkin, int _upPowerLevel, int _forwardPowerLevel, int _offlineGoldLevel, int _openEffectList, int _currEffect) { IEnumerable <JellyDB> DBs = ds.GetJellyDB(); if (DBs != null) { foreach (JellyDB DB in DBs) { DB.gold = _gold; DB.bestScore = _bestScore; DB.openSkinList = _openSkinList; DB.currSkin = _currSkin; DB.upPowerLevel = _upPowerLevel; DB.forwardPowerLevel = _forwardPowerLevel; DB.offlineGoldLevel = _offlineGoldLevel; DB.openEffectList = _openEffectList; DB.currEffect = _currEffect; ItemList = DB; } ds._connection.UpdateAll(DBs); } }