Пример #1
0
        public DiscViewModel(string discName, TagLib.File[] tracks)
            : base(null)
        {
            this._discName = discName;

            TreeViewItemViewModel[] tracksViewModel = new TreeViewItemViewModel[tracks.Length];

            for (int i = 0; i < tracks.Length; i++)
            {
                TagLib.File item = tracks[i];

                tracksViewModel[i] = new TrackViewModel(this, item);
            }

            this.Children = new ReadOnlyCollection <TreeViewItemViewModel>(tracksViewModel);
        }
Пример #2
0
 public TreeViewItemViewModel(TreeViewItemViewModel parent)
 {
     this._parent = parent;
 }