private void Save() { WWEnemyXmlDataServices wWEnemyXmlDataServices = new WWEnemyXmlDataServices(); using (wWEnemyXmlDataServices) { wWEnemyXmlDataServices.Write(_wwEnemies); } }
public WWEnemyRepository() { WWEnemyXmlDataServices wWEnemyXmlDataServices = new WWEnemyXmlDataServices(); using (wWEnemyXmlDataServices) { _wwEnemies = wWEnemyXmlDataServices.Read() as List <WWEnemy>; } }