diff --git a/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj b/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj index fef0387..7c24323 100644 --- a/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj +++ b/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj @@ -171,6 +171,9 @@ winReport.xaml + + winTrusteeShip.xaml + Designer MSBuild:Compile @@ -224,6 +227,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + diff --git a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml index 1f53205..62ab395 100644 --- a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml +++ b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml @@ -58,7 +58,7 @@ Background="Transparent" ToggleShadowColor="{x:Null}" IsChecked="{Binding StateOpen}" CheckedToggleBrush="{DynamicResource DARKPrimaryText}" ToggleBrush="{DynamicResource PrimaryDark}" pu:WindowX.IsDragMoveArea="False" BoxWidth="30" - Loaded="Switch_Loaded" Checked="Switch_Checked" Unchecked="Switch_Checked" /> + Loaded="Switch_Loaded" /> diff --git a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs index 29f0b86..4a76c4d 100644 --- a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs +++ b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs @@ -339,6 +339,7 @@ namespace VPet_Simulator.Windows { _puswitch = sender as Switch; _puswitch.IsChecked = mw.Set["betterbuy"].GetBool("noautoclose"); + _puswitch.Click += Switch_Checked; } private void Switch_Checked(object sender, RoutedEventArgs e)