Example #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);
 }
Example #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;
     });
 }
Example #3
0
 public PlayingViewModel(PlayingItem model)
 {
     _model = model;
 }