private void ButtonBack_OnClick(object sender, RoutedEventArgs e) { var movieDetail = new MovieDetail(this.ReservationData.MovieId); movieDetail.Show(); this.Hide(); }
private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { var btn = e.Source as Button; var movieId = int.Parse(btn.CommandParameter.ToString()); var form = new MovieDetail(movieId); form.Show(); this.Hide(); }
private void ButtonBack_OnClick(object sender, RoutedEventArgs e) { var db = new Database(); db.AddParameter("@id", this.ReservationId); DataTable reservation = db.ExecuteDataTable("select * from reservation where id=@id"); var movieId = reservation.Rows[0]["movieId"].ToString(); DeleteReservation(); var movieDetail = new MovieDetail(int.Parse(movieId)); movieDetail.Show(); this.Hide(); }