private void Service_FillInformation(object sender, GetMovieInfoCompletedEventArgs e) { SingletonQuery.QueryClient.GetMovieInfoCompleted -= this.Service_FillInformation; if (e.Error == null) { Movie movie = e.Result; this.imgPoster.Source = new BitmapImage(new Uri("http://tu-cinema.net78.net/posters/" + movie.Poster)); this.imgPoster.Visibility = Visibility.Collapsed; this.imgPoster.Visibility = Visibility.Visible; this.txtName.Text = movie.Name; this.txtGenre.Text = movie.Genre; this.txtDuration.Text = movie.Duration.ToString(); this.txtYear.Text = movie.Year.ToString(); this.txtDirector.Text = movie.Director; this.txtActors.Text = movie.Actors; this.txtDescription.Text = movie.Description; this.btnComments.Content = string.Format("comments({0})", movie.Comments); this.ratingBar.Value = (int)Math.Ceiling(movie.Raiting / 2); SingletonMovie.Movie.Id = movie.Id; SingletonMovie.Movie.TrailerUrl = movie.TrailerUrl; } }