예제 #1
0
        public static async Task <string> AskForAlbum()
        {
            var albums = await GetAlbums();

            //This looks ugly.
            var selected = Application.Current.Dispatcher.Invoke(() => Application.Current.Windows[0].Dispatcher.Invoke(() => PickAlbumDialog.OkCancel(albums)));

            return(selected);
        }
예제 #2
0
파일: Imgur.cs 프로젝트: pawlos/ScreenToGif
    public static async Task <string> AskForAlbum(ImgurPreset preset)
    {
        var albums = await GetAlbums(preset);

        return(Application.Current.Dispatcher.Invoke <string>(() => PickAlbumDialog.OkCancel(albums)));
    }