From 2ec34c81ec75f21ad6631734339491fe9c643ceb Mon Sep 17 00:00:00 2001 From: ZouJin Date: Sat, 12 Aug 2023 15:44:17 +1000 Subject: [PATCH] =?UTF-8?q?=E5=87=8F=E5=B0=91=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E5=BD=A2=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Core/Graph/PNGAnimation.cs | 4 ++-- VPet-Simulator.Core/Graph/Picture.cs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/VPet-Simulator.Core/Graph/PNGAnimation.cs b/VPet-Simulator.Core/Graph/PNGAnimation.cs index c26b34b..76d45f4 100644 --- a/VPet-Simulator.Core/Graph/PNGAnimation.cs +++ b/VPet-Simulator.Core/Graph/PNGAnimation.cs @@ -14,6 +14,7 @@ using static VPet_Simulator.Core.Picture; namespace VPet_Simulator.Core { + /// /// PNGAnimation.xaml 的交互逻辑 /// @@ -77,7 +78,6 @@ namespace VPet_Simulator.Core GraphCore.CommConfig["PA_Setup"] = true; GraphCore.CommUIElements["Image1.PNGAnimation"] = new System.Windows.Controls.Image() { Height = 500 }; GraphCore.CommUIElements["Image2.PNGAnimation"] = new System.Windows.Controls.Image() { Height = 500 }; - GraphCore.CommUIElements["Image3.PNGAnimation"] = new System.Windows.Controls.Image() { Height = 500 }; } Task.Run(() => startup(path, paths)); //if (storemem) @@ -334,7 +334,7 @@ namespace VPet_Simulator.Core } else { - img = (System.Windows.Controls.Image)GraphCore.CommUIElements["Image3.PNGAnimation"]; + img = (System.Windows.Controls.Image)GraphCore.CommUIElements["Image1.PNGAnimation"]; parant.Child = img; } } diff --git a/VPet-Simulator.Core/Graph/Picture.cs b/VPet-Simulator.Core/Graph/Picture.cs index 22fe65c..1bb6a5b 100644 --- a/VPet-Simulator.Core/Graph/Picture.cs +++ b/VPet-Simulator.Core/Graph/Picture.cs @@ -33,7 +33,6 @@ namespace VPet_Simulator.Core GraphCore.CommConfig["PIC_Setup"] = true; GraphCore.CommUIElements["Image1.Picture"] = new Image() { Width = 500, Height = 500 }; GraphCore.CommUIElements["Image2.Picture"] = new Image() { Width = 500, Height = 500 }; - GraphCore.CommUIElements["Image3.Picture"] = new Image() { Width = 500, Height = 500 }; } } public static void LoadGraph(GraphCore graph, FileSystemInfo path, ILine info) @@ -101,7 +100,7 @@ namespace VPet_Simulator.Core } else { - img = (Image)GraphCore.CommUIElements["Image3.Picture"]; + img = (Image)GraphCore.CommUIElements["Image1.Picture"]; parant.Child = null; parant.Child = img; }