private void SubmitCommentBtn_Click(object sender, RoutedEventArgs e) { var newComment = databaseService.AddComment(analysisInformationId, UsernameTextBlock.Text, CommentContentTextBlock.Text); CommentsField.Children.Add(new CustomCommentCard(newComment)); UsernameTextBlock.Text = string.Empty; CommentContentTextBlock.Text = string.Empty; }