This commit is contained in:
2026-04-20 14:03:01 +08:00
parent 4e3e3be090
commit 343e575339
18 changed files with 93 additions and 826 deletions

View File

@@ -11,8 +11,8 @@ namespace 头罩视野.Services
{
public class Function
{
ModbusMaster master;
IModbusMaster modbusMaster;
ModbusMaster modbusMaster;
IModbusMaster modbusmodbusMaster;
DataChange dc = new DataChange();
public enum ButtonType
{
@@ -26,14 +26,14 @@ namespace 头罩视野.Services
,
}
public Function(ModbusMaster master_in)
public Function(ModbusMaster modbusMaster_in)
{
this.master = master_in;
this.modbusMaster = modbusMaster_in;
}
public Function(IModbusMaster modbusMaster)
public Function(IModbusMaster modbusmodbusMaster)
{
this.modbusMaster = modbusMaster;
this.modbusmodbusMaster = modbusmodbusMaster;
}
public void BtnClickFunction(ButtonType buttonType, ushort address)
@@ -43,25 +43,25 @@ namespace 头罩视野.Services
switch (buttonType)
{
case ButtonType.:
master.WriteSingleCoil(1, address, true);
modbusmodbusMaster.WriteSingleCoil(1, address, true);
Thread.Sleep(100);
master.WriteSingleCoil(1, address, false);
modbusmodbusMaster.WriteSingleCoil(1, address, false);
Thread.Sleep(100);
break;
case ButtonType.:
if (master.ReadCoils(1, address, 1)[0])
if (modbusmodbusMaster.ReadCoils(1, address, 1)[0])
{
master.WriteSingleCoil(1, address, false); Thread.Sleep(100);
modbusmodbusMaster.WriteSingleCoil(1, address, false); Thread.Sleep(100);
}
else
{ master.WriteSingleCoil(1, address, true); Thread.Sleep(100); }
{ modbusmodbusMaster.WriteSingleCoil(1, address, true); Thread.Sleep(100); }
break;
case ButtonType.:
master.WriteSingleCoil(1, address, true);
modbusmodbusMaster.WriteSingleCoil(1, address, true);
Thread.Sleep(100);
break;
case ButtonType.:
master.WriteSingleCoil(1, address, false);
modbusmodbusMaster.WriteSingleCoil(1, address, false);
Thread.Sleep(100);
break;
default:
@@ -82,25 +82,25 @@ namespace 头罩视野.Services
switch (buttonType)
{
case ButtonType.:
modbusMaster.WriteSingleCoil(1, address, true);
modbusmodbusMaster.WriteSingleCoil(1, address, true);
Thread.Sleep(100);
modbusMaster.WriteSingleCoil(1, address, false);
modbusmodbusMaster.WriteSingleCoil(1, address, false);
Thread.Sleep(100);
break;
case ButtonType.:
if (modbusMaster.ReadCoils(1, address, 1)[0])
if (modbusmodbusMaster.ReadCoils(1, address, 1)[0])
{
modbusMaster.WriteSingleCoil(1, address, false); Thread.Sleep(100);
modbusmodbusMaster.WriteSingleCoil(1, address, false); Thread.Sleep(100);
}
else
{ modbusMaster.WriteSingleCoil(1, address, true); Thread.Sleep(100); }
{ modbusmodbusMaster.WriteSingleCoil(1, address, true); Thread.Sleep(100); }
break;
case ButtonType.:
modbusMaster.WriteSingleCoil(1, address, true);
modbusmodbusMaster.WriteSingleCoil(1, address, true);
Thread.Sleep(100);
break;
case ButtonType.:
modbusMaster.WriteSingleCoil(1, address, false);
modbusmodbusMaster.WriteSingleCoil(1, address, false);
Thread.Sleep(100);
break;
default:
@@ -125,7 +125,7 @@ namespace 头罩视野.Services
if (UIInputDialog.ShowInputDoubleDialog(ref value, UIStyle.Inherited, desc: "请输入值", showMask: false))
{
master.WriteMultipleRegisters(1, address, dc.SplitFloatToUShortArray((float)value));
modbusmodbusMaster.WriteMultipleRegisters(1, address, dc.SplitFloatToUShortArray((float)value));
}
break;
case DataType.:
@@ -133,7 +133,7 @@ namespace 头罩视野.Services
if (UIInputDialog.ShowInputIntegerDialog(ref value_int, UIStyle.Inherited, desc: "请输入数据:"))
{
master.WriteMultipleRegisters(1, address, dc.intToushorts(value_int));
modbusmodbusMaster.WriteMultipleRegisters(1, address, dc.intToushorts(value_int));
}
break;
default:
@@ -160,14 +160,14 @@ namespace 头罩视野.Services
if (UIInputDialog.ShowInputDoubleDialog(ref value, UIStyle.Inherited,3, desc: "请输入值", showMask: false))
{
modbusMaster.WriteMultipleRegisters(1, address, dc.SplitFloatToUShortArray((float)value));
modbusmodbusMaster.WriteMultipleRegisters(1, address, dc.SplitFloatToUShortArray((float)value));
}
break;
case DataType.:
int value_int = inPutValue.ToInt();
if (UIInputDialog.ShowInputIntegerDialog(ref value_int, UIStyle.Inherited, desc: "请输入数据:"))
{
modbusMaster.WriteMultipleRegisters(1, address, dc.intToushorts(value_int));
modbusmodbusMaster.WriteMultipleRegisters(1, address, dc.intToushorts(value_int));
}
break;
default:
@@ -197,14 +197,14 @@ namespace 头罩视野.Services
if (UIInputDialog.ShowInputDoubleDialog(ref value, UIStyle.Inherited, 3, desc: "请输入值", showMask: false))
{
modbusMaster.WriteMultipleRegisters(1, address, dc.SplitFloatToUShortArray((float)value));
modbusmodbusMaster.WriteMultipleRegisters(1, address, dc.SplitFloatToUShortArray((float)value));
}
break;
case DataType.:
int value_int = inPutValue.ToInt();
if (UIInputDialog.ShowInputIntegerDialog(ref value_int, UIStyle.Inherited, desc: "请输入数据:"))
{
modbusMaster.WriteMultipleRegisters(1, address, dc.intToushorts(value_int));
modbusmodbusMaster.WriteMultipleRegisters(1, address, dc.intToushorts(value_int));
}
break;
default:

View File

@@ -28,13 +28,14 @@ namespace 头罩视野.Views
private TcpClient _tcpClient => ModbusResourceManager.Instance.TcpClient;
private IModbusMaster _modbusMaster => ModbusResourceManager.Instance.ModbusMaster;
DispatcherTimer _timer;
DataChange c = new DataChange();
Function ma;
public PageTest()
{
InitializeComponent();
InitializeModbusTcp();
_timer = InitDispatcherTimer();
}
//复位btn
@@ -53,7 +54,7 @@ namespace 头罩视野.Views
{
ma.BtnClickFunction(Function.ButtonType., 1);
}
//反转
//反转
private void Button_Click_Res(object sender, RoutedEventArgs e)
{
ma.BtnClickFunction(Function.ButtonType., 10);
@@ -79,7 +80,7 @@ namespace 头罩视野.Views
private void Button_Click_Print(object sender, RoutedEventArgs e)
{
ma.BtnClickFunction(Function.ButtonType., 103);
}
@@ -92,7 +93,7 @@ namespace 头罩视野.Views
}
private void RadioButton_Unchecked(object sender, RoutedEventArgs e)
{
{
ma.BtnClickFunction(Function.ButtonType., 41);
@@ -151,7 +152,7 @@ namespace 头罩视野.Views
ShowError($"读取数据失败:{ex.Message}");
}
}
// 地址, 根据格式显示字符长度 322 161 绑定页面的name 值F2 保留两位小数,单位
// 地址, 根据格式显示字符长度 322 161 绑定页面的name 值F2 保留两位小数,单位
private async Task ReadAndUpdateFloatAsync(int address, int length, System.Windows.Controls.TextBox control, string format, string unit)
{
try
@@ -287,8 +288,9 @@ namespace 头罩视野.Views
}
private void Page_Loaded(object sender, RoutedEventArgs e)
{
InitializeModbusTcp();
//InitializeModbusTcp();
_timer.Start();
}
}
}

View File

@@ -148,6 +148,8 @@ namespace 头罩视野.Views
// 写入数据
int row = 2;
foreach (var item in dataList)
{
sheet.Cells[row, 1].Value = item.Id;
sheet.Cells[row, 2].Value = item.Time;

View File

@@ -7,7 +7,7 @@
mc:Ignorable="d"
d:DesignHeight="769" d:DesignWidth="1024"
Background="#F5F7FA"
Title="VisiData" Loaded="Page_Loaded" >
Title="VisiData" Loaded="Page_Loaded" >
<Page.Resources>
<!-- 标题样式 -->
<Style x:Key="MainTitleStyle" TargetType="TextBlock">
@@ -274,7 +274,8 @@ Padding="20" Margin="20,0,0,0" >
<!-- 反转 -->
<Button Grid.Row="0" Grid.Column="2" Content="反转" FontSize="18"
Width="120" Height="40" Background="#FF87CEFA" Foreground="White" Margin="5" Click="Button_Click_Res"/>
Width="120" Height="40" Background="#FF87CEFA" Foreground="White" Margin="5" PreviewMouseLeftButtonDown="Button_Click_ResDown"
PreviewMouseLeftButtonUp="Button_Click_ResUp" />
<!-- 右眼开 -->
<Button Grid.Column="3" Content="右眼开" FontSize="18"
@@ -283,7 +284,9 @@ Padding="20" Margin="20,0,0,0" >
<!-- 正转 -->
<Button Grid.Column="3" Content="正转" FontSize="18"
Width="120" Height="40" Background="#FF87CEFA" Foreground="White" Click="Button_Click_For"
Width="120" Height="40" Background="#FF87CEFA" Foreground="White"
PreviewMouseLeftButtonDown="Button_Click_ForDown"
PreviewMouseLeftButtonUp="Button_Click_ForUp"
Margin="135,0,0,0" HorizontalAlignment="Left"/>

View File

@@ -22,18 +22,20 @@ namespace 头罩视野.Views
/// <summary>
/// VisiData.xaml 的交互逻辑
/// </summary>
public partial class VisiData : Page
{
private TcpClient _tcpClient => ModbusResourceManager.Instance.TcpClient;
private IModbusMaster _modbusMaster => ModbusResourceManager.Instance.ModbusMaster;
DispatcherTimer _timer;
DataChange c = new DataChange();
Function ma;
public VisiData()
{
InitializeComponent();
InitializeModbusTcp();
_timer = InitDispatcherTimer();
}
//复位btn
private void Button_Click_Reset(object sender, RoutedEventArgs e)
@@ -50,18 +52,53 @@ namespace 头罩视野.Views
{
ma.BtnClickFunction(Function.ButtonType., 1);
}
//反转
private void Button_Click_Res(object sender, RoutedEventArgs e)
private bool _isPressing = false;
private async void Button_Click_ResDown(object sender, MouseButtonEventArgs e)
{
ma.BtnClickFunction(Function.ButtonType., 10);
((Button)sender).CaptureMouse();
_isPressing = true;
await Task.Run(() => {
//重新占位写入
_modbusMaster.WriteSingleCoilAsync(1, 10, true);
Task.Delay(100);
System.Diagnostics.Debug.WriteLine("stard1111");
});
}
private void Button_Click_ResUp(object sender, MouseButtonEventArgs e)
{
((Button)sender).ReleaseMouseCapture();
_isPressing = false;
System.Diagnostics.Debug.WriteLine("end1111");
}
//正转
private void Button_Click_For(object sender, RoutedEventArgs e)
private bool _isPressing1 = false;
private async void Button_Click_ForDown(object sender, MouseButtonEventArgs e)
{
ma.BtnClickFunction(Function.ButtonType., 11);
((Button)sender).CaptureMouse();
_isPressing1 = true;
await Task.Run(() => {
//重新占位写入
_modbusMaster.WriteSingleCoilAsync(1, 11, true);
System.Diagnostics.Debug.WriteLine("正传start");
Task.Delay(100);
});
}
private void Button_Click_ForUp(object sender, MouseButtonEventArgs e)
{
((Button)sender).ReleaseMouseCapture();
_isPressing1 = false;
System.Diagnostics.Debug.WriteLine("正传end");
}
//测试btn
private void Button_Click_Test(object sender, RoutedEventArgs e)
{
@@ -73,7 +110,7 @@ namespace 头罩视野.Views
ma.BtnClickFunction(Function.ButtonType., 103);
}
//读取
//读取数据
//读取数据
private DispatcherTimer InitDispatcherTimer()
{
var timer = new DispatcherTimer
@@ -134,7 +171,7 @@ namespace 头罩视野.Views
ShowError($"读取数据失败:{ex.Message}");
}
}
// 地址, 根据格式显示字符长度 322 161 绑定页面的name 值F2 保留两位小数,单位
// 地址, 根据格式显示字符长度 322 161 绑定页面的name 值F2 保留两位小数,单位
private async Task ReadAndUpdateFloatAsync(int address, int length, System.Windows.Controls.TextBox control, string format, string unit)
{
try
@@ -238,7 +275,6 @@ namespace 头罩视野.Views
return;
}
ma = new Function(_modbusMaster);
}
catch (Exception ex)
@@ -248,8 +284,10 @@ namespace 头罩视野.Views
}
private void Page_Loaded(object sender, RoutedEventArgs e)
{
_timer.Start();
//InitializeModbusTcp();
ma = new Function(_modbusMaster);
c = new DataChange();
}
}
}

View File

@@ -1,379 +0,0 @@
#pragma checksum "..\..\..\..\Views\VisiData.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "E7A2A073907A6B5E5B7975416A9744199F3EFFA5"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Controls.Ribbon;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
using .Views;
namespace .Views {
/// <summary>
/// VisiData
/// </summary>
public partial class VisiData : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
#line 110 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox sdtsj1;
#line default
#line hidden
#line 115 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox sdtsj2;
#line default
#line hidden
#line 121 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox sdtsj3;
#line default
#line hidden
#line 126 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox sdtsj4;
#line default
#line hidden
#line 132 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox sdtsj5;
#line default
#line hidden
#line 145 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox xdtsj1;
#line default
#line hidden
#line 149 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox xdtsj2;
#line default
#line hidden
#line 153 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox xdtsj3;
#line default
#line hidden
#line 157 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox xdtsj4;
#line default
#line hidden
#line 161 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox xdtsj5;
#line default
#line hidden
#line 172 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox zymjxs;
#line default
#line hidden
#line 178 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox yymjxs;
#line default
#line hidden
#line 183 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox bcjzxs;
#line default
#line hidden
#line 208 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox zdtsj1;
#line default
#line hidden
#line 212 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox zdtsj2;
#line default
#line hidden
#line 216 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox zdtsj3;
#line default
#line hidden
#line 226 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox zdtsj4;
#line default
#line hidden
#line 230 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox zdtsj5;
#line default
#line hidden
#line 241 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox fwbc;
#line default
#line hidden
#line 245 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox djxw;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.6.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/头罩视野;component/views/visidata.xaml", System.UriKind.Relative);
#line 1 "..\..\..\..\Views\VisiData.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.6.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 10 "..\..\..\..\Views\VisiData.xaml"
((.Views.VisiData)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);
#line default
#line hidden
return;
case 2:
this.sdtsj1 = ((System.Windows.Controls.TextBox)(target));
return;
case 3:
this.sdtsj2 = ((System.Windows.Controls.TextBox)(target));
return;
case 4:
this.sdtsj3 = ((System.Windows.Controls.TextBox)(target));
return;
case 5:
this.sdtsj4 = ((System.Windows.Controls.TextBox)(target));
return;
case 6:
this.sdtsj5 = ((System.Windows.Controls.TextBox)(target));
return;
case 7:
this.xdtsj1 = ((System.Windows.Controls.TextBox)(target));
return;
case 8:
this.xdtsj2 = ((System.Windows.Controls.TextBox)(target));
return;
case 9:
this.xdtsj3 = ((System.Windows.Controls.TextBox)(target));
return;
case 10:
this.xdtsj4 = ((System.Windows.Controls.TextBox)(target));
return;
case 11:
this.xdtsj5 = ((System.Windows.Controls.TextBox)(target));
return;
case 12:
this.zymjxs = ((System.Windows.Controls.TextBox)(target));
return;
case 13:
this.yymjxs = ((System.Windows.Controls.TextBox)(target));
return;
case 14:
this.bcjzxs = ((System.Windows.Controls.TextBox)(target));
return;
case 15:
this.zdtsj1 = ((System.Windows.Controls.TextBox)(target));
return;
case 16:
this.zdtsj2 = ((System.Windows.Controls.TextBox)(target));
return;
case 17:
this.zdtsj3 = ((System.Windows.Controls.TextBox)(target));
return;
case 18:
this.zdtsj4 = ((System.Windows.Controls.TextBox)(target));
return;
case 19:
this.zdtsj5 = ((System.Windows.Controls.TextBox)(target));
return;
case 20:
this.fwbc = ((System.Windows.Controls.TextBox)(target));
return;
case 21:
this.djxw = ((System.Windows.Controls.TextBox)(target));
return;
case 22:
#line 269 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Reset);
#line default
#line hidden
return;
case 23:
#line 273 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_left);
#line default
#line hidden
return;
case 24:
#line 277 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Res);
#line default
#line hidden
return;
case 25:
#line 281 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Right);
#line default
#line hidden
return;
case 26:
#line 286 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_For);
#line default
#line hidden
return;
case 27:
#line 302 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoHome);
#line default
#line hidden
return;
case 28:
#line 304 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoTest);
#line default
#line hidden
return;
case 29:
#line 306 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoRecord);
#line default
#line hidden
return;
case 30:
#line 308 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoView);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}

View File

@@ -1,379 +0,0 @@
#pragma checksum "..\..\..\..\Views\VisiData.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "E7A2A073907A6B5E5B7975416A9744199F3EFFA5"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Controls.Ribbon;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
using .Views;
namespace .Views {
/// <summary>
/// VisiData
/// </summary>
public partial class VisiData : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
#line 110 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox sdtsj1;
#line default
#line hidden
#line 115 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox sdtsj2;
#line default
#line hidden
#line 121 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox sdtsj3;
#line default
#line hidden
#line 126 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox sdtsj4;
#line default
#line hidden
#line 132 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox sdtsj5;
#line default
#line hidden
#line 145 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox xdtsj1;
#line default
#line hidden
#line 149 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox xdtsj2;
#line default
#line hidden
#line 153 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox xdtsj3;
#line default
#line hidden
#line 157 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox xdtsj4;
#line default
#line hidden
#line 161 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox xdtsj5;
#line default
#line hidden
#line 172 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox zymjxs;
#line default
#line hidden
#line 178 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox yymjxs;
#line default
#line hidden
#line 183 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox bcjzxs;
#line default
#line hidden
#line 208 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox zdtsj1;
#line default
#line hidden
#line 212 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox zdtsj2;
#line default
#line hidden
#line 216 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox zdtsj3;
#line default
#line hidden
#line 226 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox zdtsj4;
#line default
#line hidden
#line 230 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox zdtsj5;
#line default
#line hidden
#line 241 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox fwbc;
#line default
#line hidden
#line 245 "..\..\..\..\Views\VisiData.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox djxw;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.6.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/头罩视野;V1.0.0.0;component/views/visidata.xaml", System.UriKind.Relative);
#line 1 "..\..\..\..\Views\VisiData.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.6.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 10 "..\..\..\..\Views\VisiData.xaml"
((.Views.VisiData)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);
#line default
#line hidden
return;
case 2:
this.sdtsj1 = ((System.Windows.Controls.TextBox)(target));
return;
case 3:
this.sdtsj2 = ((System.Windows.Controls.TextBox)(target));
return;
case 4:
this.sdtsj3 = ((System.Windows.Controls.TextBox)(target));
return;
case 5:
this.sdtsj4 = ((System.Windows.Controls.TextBox)(target));
return;
case 6:
this.sdtsj5 = ((System.Windows.Controls.TextBox)(target));
return;
case 7:
this.xdtsj1 = ((System.Windows.Controls.TextBox)(target));
return;
case 8:
this.xdtsj2 = ((System.Windows.Controls.TextBox)(target));
return;
case 9:
this.xdtsj3 = ((System.Windows.Controls.TextBox)(target));
return;
case 10:
this.xdtsj4 = ((System.Windows.Controls.TextBox)(target));
return;
case 11:
this.xdtsj5 = ((System.Windows.Controls.TextBox)(target));
return;
case 12:
this.zymjxs = ((System.Windows.Controls.TextBox)(target));
return;
case 13:
this.yymjxs = ((System.Windows.Controls.TextBox)(target));
return;
case 14:
this.bcjzxs = ((System.Windows.Controls.TextBox)(target));
return;
case 15:
this.zdtsj1 = ((System.Windows.Controls.TextBox)(target));
return;
case 16:
this.zdtsj2 = ((System.Windows.Controls.TextBox)(target));
return;
case 17:
this.zdtsj3 = ((System.Windows.Controls.TextBox)(target));
return;
case 18:
this.zdtsj4 = ((System.Windows.Controls.TextBox)(target));
return;
case 19:
this.zdtsj5 = ((System.Windows.Controls.TextBox)(target));
return;
case 20:
this.fwbc = ((System.Windows.Controls.TextBox)(target));
return;
case 21:
this.djxw = ((System.Windows.Controls.TextBox)(target));
return;
case 22:
#line 269 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Reset);
#line default
#line hidden
return;
case 23:
#line 273 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_left);
#line default
#line hidden
return;
case 24:
#line 277 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Res);
#line default
#line hidden
return;
case 25:
#line 281 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Right);
#line default
#line hidden
return;
case 26:
#line 286 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_For);
#line default
#line hidden
return;
case 27:
#line 302 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoHome);
#line default
#line hidden
return;
case 28:
#line 304 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoTest);
#line default
#line hidden
return;
case 29:
#line 306 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoRecord);
#line default
#line hidden
return;
case 30:
#line 308 "..\..\..\..\Views\VisiData.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoView);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}

View File

@@ -1,20 +0,0 @@
头罩视野
1.0.0.0
winexe
C#
.cs
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\obj\Debug\net10.0-windows\
头罩视野
none
false
TRACE;DEBUG;NET;NET10_0;NETCOREAPP;WINDOWS;WINDOWS7_0;NET5_0_OR_GREATER;NET6_0_OR_GREATER;NET7_0_OR_GREATER;NET8_0_OR_GREATER;NET9_0_OR_GREATER;NET10_0_OR_GREATER;NETCOREAPP3_0_OR_GREATER;NETCOREAPP3_1_OR_GREATER;WINDOWS7_0_OR_GREATER
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\App.xaml
91871649718
24-797572828
2291904981109
MainWindow.xaml;Views\ChangeLanguage.xaml;Views\Help.xaml;Views\PageTest.xaml;Views\RecordDate.xaml;Views\RecordPage.xaml;Views\SetPassWord.xaml;Views\SetTime.xaml;Views\VisiData.xaml;
False