Example #1
0
        private async void OnQuerySubmit(object sender, RoutedEventArgs e)
        {
            await ClearImagesAsync();

            var Mangas = await Anilist.GetMangaByNameAsync(this.TextBox.Text);

            if (Mangas != null)
            {
                await DisplayMangasAsync(Mangas.ToList());
            }
        }
Example #2
0
        private async void OnKeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Enter)
            {
                await ClearImagesAsync();

                var Mangas = await Anilist.GetMangaByNameAsync(this.TextBox.Text);

                if (Mangas != null)
                {
                    await DisplayMangasAsync(Mangas.ToList());
                }
            }
        }