Ejemplo n.º 1
0
        private async void WatchedIconButton_Click(object sender, EventArgs e)
        {
            App.TrackEvent("ViewShow", "Watched");
            progressBarLoading.Visibility = System.Windows.Visibility.Visible;
            if (await showController.markShowAsSeen(this.Show.imdb_id, this.Show.Title, this.Show.year))
            {
                ToastNotification.ShowToast("Show", "Show marked as watched.");
                App.ShowViewModel.Watched = true;
                InitAppBarMain();
            }
            else
            {
                ErrorManager.ShowConnectionErrorPopup();
            }

            progressBarLoading.Visibility = System.Windows.Visibility.Collapsed;
        }