This commit is contained in:
xyy
2026-04-01 20:33:23 +08:00
parent 05c38a7dab
commit 4a6393ba8d
4 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
<Window x:Class="MembranePoreTester.MainWindow"
<Window x:Class="MembranePoreTester.ParameterWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:MembranePoreTester"

View File

@@ -7,7 +7,7 @@ using MembranePoreTester.Communication;
namespace MembranePoreTester
{
public partial class MainWindow : Window
public partial class ParameterWindow : Window
{
private readonly IPlcService _plcService;
private readonly PlcConfiguration _config;
@@ -16,7 +16,7 @@ namespace MembranePoreTester
// 文本框映射:(文本框, 地址, 参数名, 是否浮点数)
private readonly List<(TextBox textBox, ushort address, string name, bool isFloat)> _textBoxMapping = new();
public MainWindow()
public ParameterWindow()
{
InitializeComponent();
_plcService = App.PlcService;

View File

@@ -20,7 +20,7 @@ namespace MembranePoreTester
{
if (Keyboard.Modifiers == ModifierKeys.Control && e.Key == Key.P)
{
var win = new MainWindow();
var win = new ParameterWindow();
win.Owner = this;
win.ShowDialog();
}