private void AddButton_Click(object sender, RoutedEventArgs e)
 {
     NeoSingleton._connect();
     NeoSingleton._addMovie(addMovie);
     MovieBox.NeoModels.Movie movie = (MovieBox.NeoModels.Movie)MoviesList.SelectedItem;
     movieList.Instance.addMovie(addMovie);
     moviesPath.Remove(movie);
 }
示例#2
0
        private void ContentDialog_PrimaryButtonClickAsync(ContentDialog sender, ContentDialogButtonClickEventArgs args)
        {
            if (!btnPath.IsEnabled)
            {
                return;
            }

            movieList.Instance.addMovie(addMovie);
            NeoSingleton._connect();
            NeoSingleton._addMovie(addMovie);
            return;
        }
        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));
        }