Пример #1
0
 public PlayingItem(LibraryItem library, PlayingItem before)
 {
     Item = library;
     StartTime = before != null? before.EndTime : DateTime.Now;
     EndTime = StartTime.Add(library.Duration);
     Height = CreateHeight(library.Duration);
 }
Пример #2
0
 private IEnumerable<PlayingItem> ConvertPlayingItems(IEnumerable<LibraryItem> libraries)
 {
     PlayingItem beforeItem = null;
     return libraries.Select(x =>
     {
         var item = new PlayingItem(x, beforeItem);
         beforeItem = item;
         return item;
     });
 }
Пример #3
0
 public PlayingViewModel(PlayingItem model)
 {
     _model = model;
 }