Esempio n. 1
0
        private void AddMovieBTN_Click(object sender, EventArgs e)
        {
            this.Hide();
            AddMovie form = new AddMovie();

            form.ShowDialog();
            this.Close();
        }
Esempio n. 2
0
        private void addMoviesButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            AddMovie add = new AddMovie(xml, UserPath, movieList);

            if (add.ShowDialog() != DialogResult.Cancel)
            {
                movieList = add.getMovieList();
            }
            this.Show();
        }
Esempio n. 3
0
 private void AddMovieExecute()
 {
     try
     {
         AddMovie addGenreWindow = new AddMovie();
         addGenreWindow.ShowDialog();
         Movies = _dALMovie.AllMovies();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Esempio n. 4
0
        private void ViewModel_AddingMovie(object sender, EventArgs e)
        {
            _addMovieViewModel = new AddMovieViewModel(_service);

            _addMovieView = new AddMovie
            {
                DataContext = _addMovieViewModel
            };

            _addMovieViewModel.StartingImageChange += ViewModel_StartingImageChange;
            _addMovieViewModel.AddingMovieEnded    += ViewModel_AddingMovieEnded;

            _addMovieView.ShowDialog();
        }