添加项目文件。

This commit is contained in:
xyy
2026-04-20 11:51:33 +08:00
commit 83c9d27c37
28 changed files with 5952 additions and 0 deletions

45
CurveWindow.xaml Normal file
View File

@@ -0,0 +1,45 @@
<Window x:Class="EmptyLoadTest.CurveWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:oxy="http://oxyplot.org/wpf"
Title="扭矩-转速曲线"
Height="750"
Width="1024"
WindowStartupLocation="CenterScreen"
Closing="Window_Closing">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- 标题栏 -->
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="10">
<TextBlock Text="实时扭矩-转速曲线"
FontSize="18"
FontWeight="Bold"
VerticalAlignment="Center"/>
<TextBlock x:Name="dataCountText"
Margin="20,0,0,0"
Foreground="Gray"
VerticalAlignment="Center"/>
</StackPanel>
<!-- 图表 -->
<oxy:PlotView x:Name="plotView"
Grid.Row="1"
Margin="10"/>
<!-- 状态栏 -->
<StatusBar Grid.Row="2">
<StatusBarItem>
<TextBlock x:Name="statusText" Text="等待数据..."/>
</StatusBarItem>
<Separator/>
<StatusBarItem>
<TextBlock x:Name="updateTimeText" Text="最后更新: --"/>
</StatusBarItem>
</StatusBar>
</Grid>
</Window>