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); } }
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); } }