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; }