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])); } }
private void SaveToXml(string fileName, IEnumerable <IPlayItem> playItems) { PlayItemXmlRepository.SaveToXml(fileName, playItems); }