增加保温层和整理管线的功能,修复自动保存功能等修复多个bug

This commit is contained in:
GG Z
2024-10-27 00:19:48 +08:00
parent b6647218be
commit 77655c9ef5
67 changed files with 3159 additions and 731 deletions

View File

@@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Wpf.Ui;
using Wpf.Ui.Appearance;
namespace RvAddinTest;
/// <summary>
/// FluentWindow.xaml 的交互逻辑
/// </summary>
public partial class FluentWindow
{
public FluentWindow()
{
InitializeComponent();
ApplicationThemeManager.Apply(this);
ApplicationThemeManager.Changed -= ApplicationThemeManager_Changed;
ApplicationThemeManager.Changed += ApplicationThemeManager_Changed;
}
private void ApplicationThemeManager_Changed(ApplicationTheme currentApplicationTheme, Color systemAccent)
{
ApplicationThemeManager.Apply(this);
}
private void Button_Click(object sender, RoutedEventArgs e)
{
if (ApplicationThemeManager.GetAppTheme() == ApplicationTheme.Light)
{
ApplicationThemeManager.Apply(ApplicationTheme.Dark);
}
else
{
ApplicationThemeManager.Apply(ApplicationTheme.Light);
}
}
}