Example #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);
        }
Example #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));
        }
Example #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);
        }
Example #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;
        }