public static PlaybackInfoCollection Load(string filename)
        {
            if (!IOFile.Exists(filename))
            {
                return(new PlaybackInfoCollection());
            }

            PlaybackInfoCollection collection = null;

            using (var reader = new FileStream(filename, FileMode.OpenOrCreate))
            {
                try
                {
                    XmlSerializer serializer = new XmlSerializer(typeof(PlaybackInfoCollection));
                    collection = (PlaybackInfoCollection)serializer.Deserialize(reader);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString(), ex.Message, MessageBoxButton.OK, MessageBoxImage.Error);
                }
            }

            return(collection);
        }
 public PlaybackInfoCollection()
 {
     instance = this;
 }