Merge branch 'rain_test'
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -380,4 +380,5 @@ x86/
|
|||||||
*.log
|
*.log
|
||||||
*.tmp
|
*.tmp
|
||||||
*.pdb
|
*.pdb
|
||||||
*.ilk
|
*.ilk
|
||||||
|
/头罩视野slove/.vs/头罩视野slove.slnx/DesignTimeBuild/.dtbcache.v2
|
||||||
|
|||||||
Binary file not shown.
384
头罩视野slove/头罩视野/.gitignore
vendored
Normal file
384
头罩视野slove/头罩视野/.gitignore
vendored
Normal file
@@ -0,0 +1,384 @@
|
|||||||
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
##
|
||||||
|
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.rsuser
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.userosscache
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||||
|
*.userprefs
|
||||||
|
|
||||||
|
# Mono auto generated files
|
||||||
|
mono_crash.*
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
[Dd]ebug/
|
||||||
|
[Dd]ebugPublic/
|
||||||
|
[Rr]elease/
|
||||||
|
[Rr]eleases/
|
||||||
|
x64/
|
||||||
|
x86/
|
||||||
|
[Ww][Ii][Nn]32/
|
||||||
|
[Aa][Rr][Mm]/
|
||||||
|
[Aa][Rr][Mm]64/
|
||||||
|
bld/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
[Oo]ut/
|
||||||
|
[Ll]og/
|
||||||
|
[Ll]ogs/
|
||||||
|
|
||||||
|
# Visual Studio 2015/2017 cache/options directory
|
||||||
|
.vs/
|
||||||
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||||
|
#wwwroot/
|
||||||
|
|
||||||
|
# Visual Studio 2017 auto generated files
|
||||||
|
Generated\ Files/
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
# NUnit
|
||||||
|
*.VisualState.xml
|
||||||
|
TestResult.xml
|
||||||
|
nunit-*.xml
|
||||||
|
|
||||||
|
# Build Results of an ATL Project
|
||||||
|
[Dd]ebugPS/
|
||||||
|
[Rr]eleasePS/
|
||||||
|
dlldata.c
|
||||||
|
|
||||||
|
# Benchmark Results
|
||||||
|
BenchmarkDotNet.Artifacts/
|
||||||
|
|
||||||
|
# .NET Core
|
||||||
|
project.lock.json
|
||||||
|
project.fragment.lock.json
|
||||||
|
artifacts/
|
||||||
|
|
||||||
|
# ASP.NET Scaffolding
|
||||||
|
ScaffoldingReadMe.txt
|
||||||
|
|
||||||
|
# StyleCop
|
||||||
|
StyleCopReport.xml
|
||||||
|
|
||||||
|
# Files built by Visual Studio
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*_h.h
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.iobj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.ipdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*_wpftmp.csproj
|
||||||
|
*.log
|
||||||
|
*.vspscc
|
||||||
|
*.vssscc
|
||||||
|
.builds
|
||||||
|
*.pidb
|
||||||
|
*.svclog
|
||||||
|
*.scc
|
||||||
|
|
||||||
|
# Chutzpah Test files
|
||||||
|
_Chutzpah*
|
||||||
|
|
||||||
|
# Visual C++ cache files
|
||||||
|
ipch/
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opendb
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.cachefile
|
||||||
|
*.VC.db
|
||||||
|
*.VC.VC.opendb
|
||||||
|
|
||||||
|
# Visual Studio profiler
|
||||||
|
*.psess
|
||||||
|
*.vsp
|
||||||
|
*.vspx
|
||||||
|
*.sap
|
||||||
|
|
||||||
|
# Visual Studio Trace Files
|
||||||
|
*.e2e
|
||||||
|
|
||||||
|
# TFS 2012 Local Workspace
|
||||||
|
$tf/
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
*.DotSettings.user
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# AxoCover is a Code Coverage Tool
|
||||||
|
.axoCover/*
|
||||||
|
!.axoCover/settings.json
|
||||||
|
|
||||||
|
# Coverlet is a free, cross platform Code Coverage Tool
|
||||||
|
coverage*.json
|
||||||
|
coverage*.xml
|
||||||
|
coverage*.info
|
||||||
|
|
||||||
|
# Visual Studio code coverage results
|
||||||
|
*.coverage
|
||||||
|
*.coveragexml
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
_NCrunch_*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
nCrunchTemp_*
|
||||||
|
|
||||||
|
# MightyMoose
|
||||||
|
*.mm.*
|
||||||
|
AutoTest.Net/
|
||||||
|
|
||||||
|
# Web workbench (sass)
|
||||||
|
.sass-cache/
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress/
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish/
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.[Pp]ublish.xml
|
||||||
|
*.azurePubxml
|
||||||
|
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||||
|
# but database connection strings (with potential passwords) will be unencrypted
|
||||||
|
*.pubxml
|
||||||
|
*.publishproj
|
||||||
|
|
||||||
|
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||||
|
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||||
|
# in these scripts will be unencrypted
|
||||||
|
PublishScripts/
|
||||||
|
|
||||||
|
# NuGet Packages
|
||||||
|
*.nupkg
|
||||||
|
# NuGet Symbol Packages
|
||||||
|
*.snupkg
|
||||||
|
# The packages folder can be ignored because of Package Restore
|
||||||
|
**/[Pp]ackages/*
|
||||||
|
# except build/, which is used as an MSBuild target.
|
||||||
|
!**/[Pp]ackages/build/
|
||||||
|
# Uncomment if necessary however generally it will be regenerated when needed
|
||||||
|
#!**/[Pp]ackages/repositories.config
|
||||||
|
# NuGet v3's project.json files produces more ignorable files
|
||||||
|
*.nuget.props
|
||||||
|
*.nuget.targets
|
||||||
|
|
||||||
|
# Microsoft Azure Build Output
|
||||||
|
csx/
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Microsoft Azure Emulator
|
||||||
|
ecf/
|
||||||
|
rcf/
|
||||||
|
|
||||||
|
# Windows Store app package directories and files
|
||||||
|
AppPackages/
|
||||||
|
BundleArtifacts/
|
||||||
|
Package.StoreAssociation.xml
|
||||||
|
_pkginfo.txt
|
||||||
|
*.appx
|
||||||
|
*.appxbundle
|
||||||
|
*.appxupload
|
||||||
|
|
||||||
|
# Visual Studio cache files
|
||||||
|
# files ending in .cache can be ignored
|
||||||
|
*.[Cc]ache
|
||||||
|
# but keep track of directories ending in .cache
|
||||||
|
!?*.[Cc]ache/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
ClientBin/
|
||||||
|
~$*
|
||||||
|
*~
|
||||||
|
*.dbmdl
|
||||||
|
*.dbproj.schemaview
|
||||||
|
*.jfm
|
||||||
|
*.pfx
|
||||||
|
*.publishsettings
|
||||||
|
orleans.codegen.cs
|
||||||
|
|
||||||
|
# Including strong name files can present a security risk
|
||||||
|
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||||
|
#*.snk
|
||||||
|
|
||||||
|
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||||
|
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||||
|
#bower_components/
|
||||||
|
|
||||||
|
# RIA/Silverlight projects
|
||||||
|
Generated_Code/
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file
|
||||||
|
# to a newer Visual Studio version. Backup files are not needed,
|
||||||
|
# because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
UpgradeLog*.htm
|
||||||
|
ServiceFabricBackup/
|
||||||
|
*.rptproj.bak
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
*.mdf
|
||||||
|
*.ldf
|
||||||
|
*.ndf
|
||||||
|
|
||||||
|
# Business Intelligence projects
|
||||||
|
*.rdl.data
|
||||||
|
*.bim.layout
|
||||||
|
*.bim_*.settings
|
||||||
|
*.rptproj.rsuser
|
||||||
|
*- [Bb]ackup.rdl
|
||||||
|
*- [Bb]ackup ([0-9]).rdl
|
||||||
|
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||||
|
|
||||||
|
# Microsoft Fakes
|
||||||
|
FakesAssemblies/
|
||||||
|
|
||||||
|
# GhostDoc plugin setting file
|
||||||
|
*.GhostDoc.xml
|
||||||
|
|
||||||
|
# Node.js Tools for Visual Studio
|
||||||
|
.ntvs_analysis.dat
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# Visual Studio 6 build log
|
||||||
|
*.plg
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace options file
|
||||||
|
*.opt
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||||
|
*.vbw
|
||||||
|
|
||||||
|
# Visual Studio LightSwitch build output
|
||||||
|
**/*.HTMLClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/ModelManifest.xml
|
||||||
|
**/*.Server/GeneratedArtifacts
|
||||||
|
**/*.Server/ModelManifest.xml
|
||||||
|
_Pvt_Extensions
|
||||||
|
|
||||||
|
# Paket dependency manager
|
||||||
|
.paket/paket.exe
|
||||||
|
paket-files/
|
||||||
|
|
||||||
|
# FAKE - F# Make
|
||||||
|
.fake/
|
||||||
|
|
||||||
|
# CodeRush personal settings
|
||||||
|
.cr/personal
|
||||||
|
|
||||||
|
# Python Tools for Visual Studio (PTVS)
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Cake - Uncomment if you are using it
|
||||||
|
# tools/**
|
||||||
|
# !tools/packages.config
|
||||||
|
|
||||||
|
# Tabs Studio
|
||||||
|
*.tss
|
||||||
|
|
||||||
|
# Telerik's JustMock configuration file
|
||||||
|
*.jmconfig
|
||||||
|
|
||||||
|
# BizTalk build output
|
||||||
|
*.btp.cs
|
||||||
|
*.btm.cs
|
||||||
|
*.odx.cs
|
||||||
|
*.xsd.cs
|
||||||
|
|
||||||
|
# OpenCover UI analysis results
|
||||||
|
OpenCover/
|
||||||
|
|
||||||
|
# Azure Stream Analytics local run output
|
||||||
|
ASALocalRun/
|
||||||
|
|
||||||
|
# MSBuild Binary and Structured Log
|
||||||
|
*.binlog
|
||||||
|
|
||||||
|
# NVidia Nsight GPU debugger configuration file
|
||||||
|
*.nvuser
|
||||||
|
|
||||||
|
# MFractors (Xamarin productivity tool) working folder
|
||||||
|
.mfractor/
|
||||||
|
|
||||||
|
# Local History for Visual Studio
|
||||||
|
.localhistory/
|
||||||
|
|
||||||
|
# BeatPulse healthcheck temp database
|
||||||
|
healthchecksdb
|
||||||
|
|
||||||
|
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||||
|
MigrationBackup/
|
||||||
|
|
||||||
|
# Ionide (cross platform F# VS Code tools) working folder
|
||||||
|
.ionide/
|
||||||
|
|
||||||
|
# Fody - auto-generated XML schema
|
||||||
|
FodyWeavers.xsd
|
||||||
|
|
||||||
|
# 编译输出
|
||||||
|
bin/
|
||||||
|
obj/
|
||||||
|
[Dd]ebug/
|
||||||
|
[Rr]elease/
|
||||||
|
x64/
|
||||||
|
x86/
|
||||||
|
|
||||||
|
# VS 缓存
|
||||||
|
.vs/
|
||||||
|
*.user
|
||||||
|
*.suo
|
||||||
|
*.userosscache
|
||||||
|
|
||||||
|
# 其他
|
||||||
|
*.log
|
||||||
|
*.tmp
|
||||||
|
*.pdb
|
||||||
|
*.ilk
|
||||||
|
/头罩视野slove/.vs/头罩视野slove.slnx/DesignTimeBuild/.dtbcache.v2
|
||||||
@@ -11,8 +11,8 @@ namespace 头罩视野.Services
|
|||||||
{
|
{
|
||||||
public class Function
|
public class Function
|
||||||
{
|
{
|
||||||
ModbusMaster master;
|
ModbusMaster modbusMaster;
|
||||||
IModbusMaster modbusMaster;
|
IModbusMaster modbusmodbusMaster;
|
||||||
DataChange dc = new DataChange();
|
DataChange dc = new DataChange();
|
||||||
public enum ButtonType
|
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)
|
public void BtnClickFunction(ButtonType buttonType, ushort address)
|
||||||
@@ -43,25 +43,25 @@ namespace 头罩视野.Services
|
|||||||
switch (buttonType)
|
switch (buttonType)
|
||||||
{
|
{
|
||||||
case ButtonType.复归型:
|
case ButtonType.复归型:
|
||||||
master.WriteSingleCoil(1, address, true);
|
modbusmodbusMaster.WriteSingleCoil(1, address, true);
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
master.WriteSingleCoil(1, address, false);
|
modbusmodbusMaster.WriteSingleCoil(1, address, false);
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
break;
|
break;
|
||||||
case ButtonType.切换型:
|
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
|
else
|
||||||
{ master.WriteSingleCoil(1, address, true); Thread.Sleep(100); }
|
{ modbusmodbusMaster.WriteSingleCoil(1, address, true); Thread.Sleep(100); }
|
||||||
break;
|
break;
|
||||||
case ButtonType.置位型:
|
case ButtonType.置位型:
|
||||||
master.WriteSingleCoil(1, address, true);
|
modbusmodbusMaster.WriteSingleCoil(1, address, true);
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
break;
|
break;
|
||||||
case ButtonType.复位型:
|
case ButtonType.复位型:
|
||||||
master.WriteSingleCoil(1, address, false);
|
modbusmodbusMaster.WriteSingleCoil(1, address, false);
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -82,25 +82,25 @@ namespace 头罩视野.Services
|
|||||||
switch (buttonType)
|
switch (buttonType)
|
||||||
{
|
{
|
||||||
case ButtonType.复归型:
|
case ButtonType.复归型:
|
||||||
modbusMaster.WriteSingleCoil(1, address, true);
|
modbusmodbusMaster.WriteSingleCoil(1, address, true);
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
modbusMaster.WriteSingleCoil(1, address, false);
|
modbusmodbusMaster.WriteSingleCoil(1, address, false);
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
break;
|
break;
|
||||||
case ButtonType.切换型:
|
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
|
else
|
||||||
{ modbusMaster.WriteSingleCoil(1, address, true); Thread.Sleep(100); }
|
{ modbusmodbusMaster.WriteSingleCoil(1, address, true); Thread.Sleep(100); }
|
||||||
break;
|
break;
|
||||||
case ButtonType.置位型:
|
case ButtonType.置位型:
|
||||||
modbusMaster.WriteSingleCoil(1, address, true);
|
modbusmodbusMaster.WriteSingleCoil(1, address, true);
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
break;
|
break;
|
||||||
case ButtonType.复位型:
|
case ButtonType.复位型:
|
||||||
modbusMaster.WriteSingleCoil(1, address, false);
|
modbusmodbusMaster.WriteSingleCoil(1, address, false);
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -125,7 +125,7 @@ namespace 头罩视野.Services
|
|||||||
if (UIInputDialog.ShowInputDoubleDialog(ref value, UIStyle.Inherited, desc: "请输入值", showMask: false))
|
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;
|
break;
|
||||||
case DataType.整形:
|
case DataType.整形:
|
||||||
@@ -133,7 +133,7 @@ namespace 头罩视野.Services
|
|||||||
if (UIInputDialog.ShowInputIntegerDialog(ref value_int, UIStyle.Inherited, desc: "请输入数据:"))
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -160,14 +160,14 @@ namespace 头罩视野.Services
|
|||||||
if (UIInputDialog.ShowInputDoubleDialog(ref value, UIStyle.Inherited,3, desc: "请输入值", showMask: false))
|
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;
|
break;
|
||||||
case DataType.整形:
|
case DataType.整形:
|
||||||
int value_int = inPutValue.ToInt();
|
int value_int = inPutValue.ToInt();
|
||||||
if (UIInputDialog.ShowInputIntegerDialog(ref value_int, UIStyle.Inherited, desc: "请输入数据:"))
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -197,14 +197,14 @@ namespace 头罩视野.Services
|
|||||||
if (UIInputDialog.ShowInputDoubleDialog(ref value, UIStyle.Inherited, 3, desc: "请输入值", showMask: false))
|
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;
|
break;
|
||||||
case DataType.整形:
|
case DataType.整形:
|
||||||
int value_int = inPutValue.ToInt();
|
int value_int = inPutValue.ToInt();
|
||||||
if (UIInputDialog.ShowInputIntegerDialog(ref value_int, UIStyle.Inherited, desc: "请输入数据:"))
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -28,13 +28,14 @@ namespace 头罩视野.Views
|
|||||||
|
|
||||||
private TcpClient _tcpClient => ModbusResourceManager.Instance.TcpClient;
|
private TcpClient _tcpClient => ModbusResourceManager.Instance.TcpClient;
|
||||||
private IModbusMaster _modbusMaster => ModbusResourceManager.Instance.ModbusMaster;
|
private IModbusMaster _modbusMaster => ModbusResourceManager.Instance.ModbusMaster;
|
||||||
|
DispatcherTimer _timer;
|
||||||
DataChange c = new DataChange();
|
DataChange c = new DataChange();
|
||||||
Function ma;
|
Function ma;
|
||||||
public PageTest()
|
public PageTest()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
InitializeModbusTcp();
|
||||||
|
_timer = InitDispatcherTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
//复位btn
|
//复位btn
|
||||||
@@ -53,7 +54,7 @@ namespace 头罩视野.Views
|
|||||||
{
|
{
|
||||||
ma.BtnClickFunction(Function.ButtonType.切换型, 1);
|
ma.BtnClickFunction(Function.ButtonType.切换型, 1);
|
||||||
}
|
}
|
||||||
//反转
|
//反转
|
||||||
private void Button_Click_Res(object sender, RoutedEventArgs e)
|
private void Button_Click_Res(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
ma.BtnClickFunction(Function.ButtonType.复归型, 10);
|
ma.BtnClickFunction(Function.ButtonType.复归型, 10);
|
||||||
@@ -79,7 +80,7 @@ namespace 头罩视野.Views
|
|||||||
|
|
||||||
private void Button_Click_Print(object sender, RoutedEventArgs e)
|
private void Button_Click_Print(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
ma.BtnClickFunction(Function.ButtonType.复归型, 103);
|
ma.BtnClickFunction(Function.ButtonType.复归型, 103);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -92,7 +93,7 @@ namespace 头罩视野.Views
|
|||||||
|
|
||||||
}
|
}
|
||||||
private void RadioButton_Unchecked(object sender, RoutedEventArgs e)
|
private void RadioButton_Unchecked(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
ma.BtnClickFunction(Function.ButtonType.切换型, 41);
|
ma.BtnClickFunction(Function.ButtonType.切换型, 41);
|
||||||
|
|
||||||
@@ -151,7 +152,7 @@ namespace 头罩视野.Views
|
|||||||
ShowError($"读取数据失败:{ex.Message}");
|
ShowError($"读取数据失败:{ex.Message}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 地址, 根据格式显示字符长度 32:2 16:1 ,绑定页面的name 值,F2 保留两位小数,单位
|
// 地址, 根据格式显示字符长度 32:2 16:1 ,绑定页面的name 值,F2 保留两位小数,单位
|
||||||
private async Task ReadAndUpdateFloatAsync(int address, int length, System.Windows.Controls.TextBox control, string format, string unit)
|
private async Task ReadAndUpdateFloatAsync(int address, int length, System.Windows.Controls.TextBox control, string format, string unit)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -287,8 +288,9 @@ namespace 头罩视野.Views
|
|||||||
}
|
}
|
||||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
private void Page_Loaded(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
InitializeModbusTcp();
|
//InitializeModbusTcp();
|
||||||
|
_timer.Start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -148,6 +148,8 @@ namespace 头罩视野.Views
|
|||||||
// 写入数据
|
// 写入数据
|
||||||
int row = 2;
|
int row = 2;
|
||||||
foreach (var item in dataList)
|
foreach (var item in dataList)
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
sheet.Cells[row, 1].Value = item.Id;
|
sheet.Cells[row, 1].Value = item.Id;
|
||||||
sheet.Cells[row, 2].Value = item.Time;
|
sheet.Cells[row, 2].Value = item.Time;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="769" d:DesignWidth="1024"
|
d:DesignHeight="769" d:DesignWidth="1024"
|
||||||
Background="#F5F7FA"
|
Background="#F5F7FA"
|
||||||
Title="VisiData" Loaded="Page_Loaded" >
|
Title="VisiData" Loaded="Page_Loaded" >
|
||||||
<Page.Resources>
|
<Page.Resources>
|
||||||
<!-- 标题样式 -->
|
<!-- 标题样式 -->
|
||||||
<Style x:Key="MainTitleStyle" TargetType="TextBlock">
|
<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"
|
<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"
|
<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"
|
<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"/>
|
Margin="135,0,0,0" HorizontalAlignment="Left"/>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -22,18 +22,20 @@ namespace 头罩视野.Views
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// VisiData.xaml 的交互逻辑
|
/// VisiData.xaml 的交互逻辑
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
||||||
|
|
||||||
public partial class VisiData : Page
|
public partial class VisiData : Page
|
||||||
{
|
{
|
||||||
private TcpClient _tcpClient => ModbusResourceManager.Instance.TcpClient;
|
private TcpClient _tcpClient => ModbusResourceManager.Instance.TcpClient;
|
||||||
private IModbusMaster _modbusMaster => ModbusResourceManager.Instance.ModbusMaster;
|
private IModbusMaster _modbusMaster => ModbusResourceManager.Instance.ModbusMaster;
|
||||||
|
DispatcherTimer _timer;
|
||||||
DataChange c = new DataChange();
|
DataChange c = new DataChange();
|
||||||
Function ma;
|
Function ma;
|
||||||
public VisiData()
|
public VisiData()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
InitializeModbusTcp();
|
||||||
|
_timer = InitDispatcherTimer();
|
||||||
}
|
}
|
||||||
//复位btn
|
//复位btn
|
||||||
private void Button_Click_Reset(object sender, RoutedEventArgs e)
|
private void Button_Click_Reset(object sender, RoutedEventArgs e)
|
||||||
@@ -50,18 +52,53 @@ namespace 头罩视野.Views
|
|||||||
{
|
{
|
||||||
ma.BtnClickFunction(Function.ButtonType.切换型, 1);
|
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
|
//测试btn
|
||||||
private void Button_Click_Test(object sender, RoutedEventArgs e)
|
private void Button_Click_Test(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
@@ -73,7 +110,7 @@ namespace 头罩视野.Views
|
|||||||
ma.BtnClickFunction(Function.ButtonType.复归型, 103);
|
ma.BtnClickFunction(Function.ButtonType.复归型, 103);
|
||||||
}
|
}
|
||||||
//读取
|
//读取
|
||||||
//读取数据
|
//读取数据
|
||||||
private DispatcherTimer InitDispatcherTimer()
|
private DispatcherTimer InitDispatcherTimer()
|
||||||
{
|
{
|
||||||
var timer = new DispatcherTimer
|
var timer = new DispatcherTimer
|
||||||
@@ -134,7 +171,7 @@ namespace 头罩视野.Views
|
|||||||
ShowError($"读取数据失败:{ex.Message}");
|
ShowError($"读取数据失败:{ex.Message}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 地址, 根据格式显示字符长度 32:2 16:1 ,绑定页面的name 值,F2 保留两位小数,单位
|
// 地址, 根据格式显示字符长度 32:2 16:1 ,绑定页面的name 值,F2 保留两位小数,单位
|
||||||
private async Task ReadAndUpdateFloatAsync(int address, int length, System.Windows.Controls.TextBox control, string format, string unit)
|
private async Task ReadAndUpdateFloatAsync(int address, int length, System.Windows.Controls.TextBox control, string format, string unit)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -238,7 +275,6 @@ namespace 头罩视野.Views
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ma = new Function(_modbusMaster);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@@ -248,8 +284,10 @@ namespace 头罩视野.Views
|
|||||||
}
|
}
|
||||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
private void Page_Loaded(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
_timer.Start();
|
||||||
|
|
||||||
//InitializeModbusTcp();
|
ma = new Function(_modbusMaster);
|
||||||
|
c = new DataChange();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user