Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Schema.BlockedGames         blockedGames = new Schema.BlockedGames();
            Schema.BlockedGames.GameRow row          = blockedGames.Game.NewGameRow();
            row.discId  = "SBLE5G";
            row.titleId = "SBLE";
            row.name    = "A boy and his blob";
            blockedGames.Game.AddGameRow(row);

            blockedGames.WriteXml("c:\\sample.xml");
        }
Пример #2
0
        public void SaveBlockedGameList(string path, List <GameInfo> blockedGamesList)
        {
            Schema.BlockedGames blockedGames = new Schema.BlockedGames();
            for (int i = 0; i < blockedGamesList.Count; i++)
            {
                Schema.BlockedGames.GameRow row = blockedGames.Game.NewGameRow();
                row.discId  = blockedGamesList[i].DiscId;
                row.titleId = blockedGamesList[i].TitleId;
                row.name    = blockedGamesList[i].Name;
                blockedGames.Game.AddGameRow(row);
            }

            blockedGames.WriteXml(path);
        }