Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 99fede4

Browse files
Formatting code
1 parent b164e54 commit 99fede4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/GitHub.InlineReviews/ViewModels/CommentViewModel.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,11 @@ protected void AddErrorHandler<T>(ReactiveCommand<T> command)
131131

132132
async Task DoDelete(object unused)
133133
{
134-
string deleteCommentMessageBoxText = VisualStudio.UI.Resources.DeleteCommentConfirmation;
135-
string deleteCommentCaption = VisualStudio.UI.Resources.DeleteCommentConfirmationCaption;
136-
137-
MessageBoxButton deleteCommentButton = MessageBoxButton.YesNo;
138-
MessageBoxImage deleteCommentImage = MessageBoxImage.Question;
139-
140-
MessageBoxResult result = MessageBox.Show(deleteCommentMessageBoxText, deleteCommentCaption, deleteCommentButton, deleteCommentImage);
134+
var result = MessageBox.Show(
135+
VisualStudio.UI.Resources.DeleteCommentConfirmation,
136+
VisualStudio.UI.Resources.DeleteCommentConfirmationCaption,
137+
MessageBoxButton.YesNo,
138+
MessageBoxImage.Question);
141139

142140
switch(result)
143141
{

0 commit comments

Comments
 (0)