From e3690319253233ec76d2696e8054705fdd635756 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Tue, 11 Apr 2023 14:00:10 +1000 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E4=BA=9BUI=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/MainWindow.cs | 2 +- VPet-Simulator.Windows/MainWindow.xaml.cs | 2 +- VPet-Simulator.Windows/WinDesign/winReport.xaml | 2 +- VPet-Simulator.Windows/WinDesign/winReport.xaml.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs index 3c3c361..7bb4580 100644 --- a/VPet-Simulator.Windows/MainWindow.cs +++ b/VPet-Simulator.Windows/MainWindow.cs @@ -77,7 +77,7 @@ namespace VPet_Simulator.Windows } catch (Exception e) { - new winReport(this, "由于插件引起的自定按钮加载错误\n" + e.ToString()); + new winReport(this, "由于插件引起的自定按钮加载错误\n" + e.ToString()).Show(); } } public static void RunDIY(string content) diff --git a/VPet-Simulator.Windows/MainWindow.xaml.cs b/VPet-Simulator.Windows/MainWindow.xaml.cs index 78aaa47..f5a4501 100644 --- a/VPet-Simulator.Windows/MainWindow.xaml.cs +++ b/VPet-Simulator.Windows/MainWindow.xaml.cs @@ -230,7 +230,7 @@ namespace VPet_Simulator.Windows } catch (Exception e) { - new winReport(this, "由于插件引起的游戏启动错误\n" + e.ToString()); + new winReport(this, "由于插件引起的游戏启动错误\n" + e.ToString()).Show(); } Main.DefaultClickAction = () => { diff --git a/VPet-Simulator.Windows/WinDesign/winReport.xaml b/VPet-Simulator.Windows/WinDesign/winReport.xaml index dab1e0a..b1b47a1 100644 --- a/VPet-Simulator.Windows/WinDesign/winReport.xaml +++ b/VPet-Simulator.Windows/WinDesign/winReport.xaml @@ -28,7 +28,7 @@ + MaxHeight="172" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"/> diff --git a/VPet-Simulator.Windows/WinDesign/winReport.xaml.cs b/VPet-Simulator.Windows/WinDesign/winReport.xaml.cs index c20bdd6..e8a27dd 100644 --- a/VPet-Simulator.Windows/WinDesign/winReport.xaml.cs +++ b/VPet-Simulator.Windows/WinDesign/winReport.xaml.cs @@ -41,7 +41,7 @@ namespace VPet_Simulator.Windows { tType.SelectedIndex = 0; tContent.Text = errmsg; - tContent.IsEnabled = false; + tContent.IsReadOnly = true; tContent.Height = 44; }