Skip to content

Commit 7c718ce

Browse files
committed
Add code comments
1 parent e6eb8c0 commit 7c718ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Flow.Launcher/MessageBoxEx.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ private async Task SetImageAsync(string imageName)
160160
private void KeyEsc_OnPress(object sender, ExecutedRoutedEventArgs e)
161161
{
162162
if (_button == MessageBoxButton.YesNo)
163+
// Follow System.Windows.MessageBox behavior
163164
return;
164165
else if (_button == MessageBoxButton.OK)
165166
_result = MessageBoxResult.OK;
@@ -188,6 +189,7 @@ private void Button_Click(object sender, RoutedEventArgs e)
188189
private void Button_Cancel(object sender, RoutedEventArgs e)
189190
{
190191
if (_button == MessageBoxButton.YesNo)
192+
// Follow System.Windows.MessageBox behavior
191193
return;
192194
else if (_button == MessageBoxButton.OK)
193195
_result = MessageBoxResult.OK;

0 commit comments

Comments
 (0)