void Service_AddComment(object sender, AddCommentCompletedEventArgs e) { SingletonQuery.QueryClient.AddCommentCompleted -= this.Service_AddComment; if (e.Error == null) { if (e.Result) { MessageBox.Show("You successfully commented the movie.", "Information", MessageBoxButton.OK); this.commentsPanel.Children.Clear(); this.FillCommentsInformation(SingletonMovie.Movie.Name); this.txtComment.Text = string.Empty; } else { MessageBox.Show("Error while commenting!", "Error", MessageBoxButton.OK); } } }
void Service_AddComment(object sender, AddCommentCompletedEventArgs e) { SingletonQuery.QueryClient.AddCommentCompleted -= this.Service_AddComment; if (e.Error == null) { if (e.Result) { MessageBox.Show("You successfully commented the movie.", "Information", MessageBoxButton.OK); this.commentsPanel.Children.Clear(); this.FillCommentsInformation(SingletonMovie.Movie.Name); this.txtComment.Text = string.Empty; } else { MessageBox.Show("Error while commenting!", "Error", MessageBoxButton.OK); } } }