From e57938fbda9bff702004038f76d009422968bff5 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期五, 06 十一月 2026 18:05:07 +0800
Subject: [PATCH] 提交代码

---
 DeviceService/AddDeviceWindow.xaml |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/DeviceService/AddDeviceWindow.xaml b/DeviceService/AddDeviceWindow.xaml
new file mode 100644
index 0000000..4a1aebc
--- /dev/null
+++ b/DeviceService/AddDeviceWindow.xaml
@@ -0,0 +1,56 @@
+<Window x:Class="DeviceService.AddDeviceWindow"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        mc:Ignorable="d"
+        Title="娣诲姞璁惧"
+        Width="480" Height="440"
+        MinWidth="420" MinHeight="360"
+        WindowStartupLocation="CenterOwner"
+        ResizeMode="CanResize"
+        Background="{StaticResource PageBackgroundBrush}">
+    <Grid Margin="12">
+        <Grid.RowDefinitions>
+            <RowDefinition Height="Auto" />
+            <RowDefinition Height="*" />
+            <RowDefinition Height="Auto" />
+        </Grid.RowDefinitions>
+
+        <!-- 璁惧绫诲瀷閫夋嫨 -->
+        <Border Grid.Row="0" Style="{StaticResource CardBorder}" Padding="10">
+            <StackPanel>
+                <TextBlock Text="璁惧绫诲瀷"
+                           Style="{StaticResource TitleText}"
+                           Margin="2,0,0,8" />
+                <ComboBox x:Name="TypeCombo"
+                          Padding="8,6"
+                          SelectionChanged="TypeCombo_SelectionChanged" />
+            </StackPanel>
+        </Border>
+
+        <!-- 閫夊瀷鍚庡姞杞界殑閰嶇疆鎺т欢 -->
+        <Border Grid.Row="1" Style="{StaticResource CardBorder}" Margin="0,10,0,0">
+            <ContentControl x:Name="ControlHost" Margin="4" Focusable="False" />
+        </Border>
+
+        <!-- 搴曢儴鎸夐挳 -->
+        <StackPanel Grid.Row="2"
+                    Orientation="Horizontal"
+                    HorizontalAlignment="Right"
+                    Margin="0,10,0,0">
+            <Button x:Name="OkButton"
+                    Style="{StaticResource PrimaryButton}"
+                    MinWidth="88"
+                    Content="纭畾"
+                    IsEnabled="False"
+                    Click="OkButton_Click" />
+            <Button x:Name="CancelButton"
+                    Style="{StaticResource SecondaryButton}"
+                    MinWidth="88"
+                    Margin="8,0,0,0"
+                    Content="鍙栨秷"
+                    Click="CancelButton_Click" />
+        </StackPanel>
+    </Grid>
+</Window>

--
Gitblit v1.9.1