Ejemplo n.º 1
0
        private void Delete_Click(object sender, RoutedEventArgs e)
        {
            Button button = sender as Button;

            VModels.Manga.InHistory inHistory = button.DataContext as VModels.Manga.InHistory;
            History.Remove(inHistory);
        }
Ejemplo n.º 2
0
        private void Open_Click(object sender, RoutedEventArgs e)
        {
            Button button = sender as Button;

            VModels.Manga.InHistory inHistory = button.DataContext as VModels.Manga.InHistory;
            History.Move(History.IndexOf(inHistory), 0);
            this.Frame.Navigate(typeof(Pages.Pages));
        }
Ejemplo n.º 3
0
        private async void InBrowser_ClickAsync(object sender, RoutedEventArgs e)
        {
            Button button = sender as Button;

            VModels.Manga.InHistory inHistory = button.DataContext as VModels.Manga.InHistory;
            Uri uri = new Uri(inHistory.Manga.Link);
            await Windows.System.Launcher.LaunchUriAsync(uri);
        }
Ejemplo n.º 4
0
        private async void Refresh_ClickAsync(object sender, RoutedEventArgs e)
        {
            Ring.IsActive = true;
            Button button = sender as Button;

            VModels.Manga.InHistory inHistory = button.DataContext as VModels.Manga.InHistory;
            await inHistory.Refresh();

            Ring.IsActive = false;
        }