Пример #1
0
        private void ContentDialog_PrimaryButtonClickAsync(ContentDialog sender, ContentDialogButtonClickEventArgs args)
        {
            if (!btnPath.IsEnabled)
            {
                return;
            }

            movieList.Instance.addMovie(addMovie);
            NeoSingleton._connect();
            NeoSingleton._addMovie(addMovie);
            return;
        }
Пример #2
0
        private void AddToButton_Click(object sender, RoutedEventArgs e)
        {
            int index = 0;

            foreach (NeoModels.Movie movie in Suggested)
            {
                if (ShouldAdd[index])
                {
                    movieList.Instance.addMovie(movie);
                    NeoSingleton._connect();
                    NeoSingleton._addMovie(movie);
                }
                index++;
            }
            Frame.Navigate(typeof(MoviesPage));
        }
Пример #3
0
        private void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
        {
            if (!btnPath.IsEnabled)
            {
                return;
            }

            NeoSingleton._connect();
            if (already)
            {
                NeoSingleton._addSeason(addSeason, show);
                seasonList.Instance.addSeason(addSeason, show);
            }
            else
            {
                NeoSingleton._addTvShow(show);
                seasonList.Instance.addTVShow(show);
            }
        }
 public PreferencesPage()
 {
     this.InitializeComponent();
     NumberOfMovies.Text = "You have " + NeoSingleton._numberOfMovies().ToString() + " movies and " + NeoSingleton._numberOfSeasons().ToString() + " TVShow seasons in your collection.";
 }
Пример #5
0
 private void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
 {
     movieList.Instance.modifyMovie(addMovie);
     NeoSingleton._connect();
     NeoSingleton._modifyMovie(addMovie);
 }