示例#1
0
        private void lstMedias_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Movie movie = (Movie)lstMedias.SelectedItem;

            frmMovieData frmMovieData = new frmMovieData();

            frmMovieData.MovieInstance = movie;
            frmMovieData.ShowDialog();
        }
示例#2
0
        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();
        }