private void AddMovieBTN_Click(object sender, EventArgs e) { this.Hide(); AddMovie form = new AddMovie(); form.ShowDialog(); this.Close(); }
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(); }
private void AddMovieExecute() { try { AddMovie addGenreWindow = new AddMovie(); addGenreWindow.ShowDialog(); Movies = _dALMovie.AllMovies(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
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(); }