private async Task AddItemToList(VKAudio item) { var audioWrapper = new AudioListItemModel(item); if (this.currentItem != null && this.currentItem.Item == audioWrapper) { await AddItem(this.currentItem); } else { var itemVM = ServiceLocator.Current.GetInstance<IAudioListItemViewModel>(); itemVM.Item = audioWrapper; await AddItem(itemVM); } }
public LyricsViewModel(VKAudio audio) { Contract.Requires(audio != null); this.audio = audio; }