From 73a6dbff388d9f71ef3e412c9d9ca42b728f990d Mon Sep 17 00:00:00 2001 From: ARMrAmzing <36760677+ARMrAmzing@users.noreply.github.com> Date: Wed, 24 Aug 2022 23:38:21 +0800 Subject: [PATCH] V2.0.1 --- EnvironmentTest.cs | 4 +--- Form1.cs | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/EnvironmentTest.cs b/EnvironmentTest.cs index 5cb055d..cda4156 100644 --- a/EnvironmentTest.cs +++ b/EnvironmentTest.cs @@ -11,12 +11,10 @@ public EnvironmentTest() { var ver = Environment.OSVersion.Version; if (!(ver.Major == 10 && ver.Build >= 22000)) { - TopMostMessageBox.Show("您的操作系统不是Windows 11\nYour operating system isn't Windows 11", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); - Environment.Exit(0); + TopMostMessageBox.Show("您的操作系统不是Windows 11,可能无法使用安卓子系统\nYour operating system isn't Windows 11, so you can't perhaps use the Android Subsystem", String.Empty , MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } /*if (!File.Exists("C:\\Program Files\\WindowsApps\\MicrosoftCorporationII.WindowsSubsystemForAndroid_2205.40000.21.0_x64__8wekyb3d8bbwe\\WsaClient\\WsaClient.exe")) { TopMostMessageBox.Show("您未安装安卓子系统!\nYou haven't installed the Android Subsytem", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); - Environment.Exit(0); }*/ } } diff --git a/Form1.cs b/Form1.cs index b4d15a2..36c0af1 100644 --- a/Form1.cs +++ b/Form1.cs @@ -176,6 +176,7 @@ private void Debug() TopMostMessageBox.Show(languageManager.dic[13] + "file" + languageManager.dic[14], string.Empty, MessageBoxButtons.OK, MessageBoxIcon.Information); TopMostMessageBox.Show(languageManager.dic[15] + "result.standardError" + languageManager.dic[16] + "result.exitCode", languageManager.dic[18], MessageBoxButtons.OK, MessageBoxIcon.Error); TopMostMessageBox.Show(languageManager.dic[17] + "e", languageManager.dic[18], MessageBoxButtons.OK, MessageBoxIcon.Error); + TopMostMessageBox.Show("您的操作系统不是Windows 11,可能无法使用安卓子系统\nYour operating system isn't Windows 11, so you can't perhaps use the Android Subsystem", String.Empty, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } } }