Exemplo n.º 1
0
        private void LoadFromXml(string fileName)
        {
            this.Clear();
            var newItems = PlayItemXmlRepository.LoadFromXml(fileName);

            for (int i = 0; i < newItems.Count; i++)
            {
                _playItemCollection.Add(_playItemCollection.CreateBindablePlayItem(newItems[i]));
            }
        }
Exemplo n.º 2
0
 private void SaveToXml(string fileName, IEnumerable <IPlayItem> playItems)
 {
     PlayItemXmlRepository.SaveToXml(fileName, playItems);
 }