Apply suggestions from code review

Co-authored-by: Sergio Pedri <[email protected]>
このコミットが含まれているのは:
Michael A. HawkerとSergio Pedri committed 2021-11-07 14:21:25 -08:00
1 親 e28d8b30c0
コミット 07ff110db3
2ファイル変更
+6 -4

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -149,8 +149,8 @@ internal unsafe static class Win32ApplicationRunner
Thread.Sleep(100);
}
// Also listen to Escape and 'Q' to Quit.
if (msg.message == Windows.WM_KEYUP && (msg.wParam == Windows.VK_ESCAPE || msg.wParam == 0x51))
// Also listen to Escape and 'Q' to quit
if (msg.message == Windows.WM_KEYUP && (msg.wParam == Windows.VK_ESCAPE || msg.wParam == 'Q'))
{
_ = Windows.DestroyWindow(hwnd);
}
+4 -2
ファイルの表示
@@ -39,6 +39,7 @@ class Program
do
{
Console.Clear();
Console.WriteLine("Available samples:");
Console.WriteLine();
@@ -47,7 +48,7 @@ class Program
Console.WriteLine($"{i}: {Samples[i].GetType().GenericTypeArguments[0].Name}");
}
Console.WriteLine($"{Samples.Length}+: Exit (Use Escape, 'Q', or Alt+F4 to exit a sample once chosen.)");
Console.WriteLine($"{Samples.Length}+: Exit (Use Escape, 'Q', or Alt + F4 to exit a sample once chosen)");
Console.WriteLine();
do
@@ -63,7 +64,8 @@ class Program
Win32ApplicationRunner.Run(Samples[index]);
}
} while (index >= 0 && index < Samples.Length);
}
while (index >= 0 && index < Samples.Length);
}
/// <summary>