예제 #1
0
        private async void FilePicker_Click(object sender, RoutedEventArgs e)
        {
            this.ErrorBox.Text = string.Empty;
            var songFilePath = await SongPagesHelper.UploadSongAsync().ConfigureAwait(true);

            if (songFilePath != null)
            {
                await SongPagesHelper.FillListBoxAsync(this.SongsListBox, songFilePath, this.Next).ConfigureAwait(false);
            }
        }
예제 #2
0
        private async void FilePicker_Click(object sender, RoutedEventArgs e)
        {
            var songFilePath = await SongPagesHelper.UploadSongAsync().ConfigureAwait(true);

            UserData.Song = this.SongsListBox.SelectedValue.ToString();

            Thread.Sleep(1000);
            if (songFilePath != null)
            {
                SongPagesHelper.FillListBoxAsync(this.SongsListBox, songFilePath, null).GetAwaiter().GetResult();
            }
        }