예제 #1
0
        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);
            }
        }
예제 #2
0
        public LyricsViewModel(VKAudio audio)
        {
            Contract.Requires(audio != null);

            this.audio = audio;
        }