private void lstMedias_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Movie movie = (Movie)lstMedias.SelectedItem; frmMovieData frmMovieData = new frmMovieData(); frmMovieData.MovieInstance = movie; frmMovieData.ShowDialog(); }
private void btnDetail_Click(object sender, RoutedEventArgs e) { Button btn = (Button)sender; string id = btn.CommandParameter.ToString(); frmMovieData newform = new frmMovieData(); newform.MovieInstance = MovieRepository.GetMovie(id); newform.ShowDialog(); Initialize(); }