This commit is contained in:
2026-04-21 10:19:14 +08:00
parent e1c7904932
commit 6c88930313
18 changed files with 251 additions and 196 deletions

View File

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace
{
public static class TestDataStore
{
// 单条测试数据
public class TestRecord
{
public int Id { get; set; }
public string Time { get; set; }
public string Date { get; set; }
public double LeftEyeArea { get; set; }
public double RightEyeArea { get; set; }
public double BinocularArea { get; set; }
//public double BlankArea { get; set; }
public double LowerVision { get; set; }
public double VisionRetentionRate { get; set; }
}
// 所有记录
public static List<TestRecord> Records { get; } = new List<TestRecord>();
private static int _nextId = 1;
public static void AddNewRecord(TestRecord record)
{
record.Id = _nextId++;
Records.Add(record);
}
}
}

View File

@@ -8,7 +8,7 @@
mc:Ignorable="d"
Background="#F5F7FA"
d:DesignHeight="768" d:DesignWidth="1024"
Title="PageTest" Loaded="Page_Loaded">
Title="PageTest" Loaded="Page_Loaded" Unloaded="Page_Unloaded">
<Page.Resources>
<!-- 标题样式 -->
<Style x:Key="MainTitleStyle" TargetType="TextBlock">

View File

@@ -31,11 +31,20 @@ namespace 头罩视野.Views
DispatcherTimer _timer;
DataChange c = new DataChange();
Function ma;
//// 定时采集用
private DispatcherTimer testTimer;
// 保存上一条数据(用于去重)
private TestDataStore.TestRecord _lastRecord;
public PageTest()
{
InitializeComponent();
InitializeModbusTcp();
_timer = InitDispatcherTimer();
// 2. 初始化定时器500毫秒 执行一次
testTimer = new DispatcherTimer();
testTimer.Interval = TimeSpan.FromMilliseconds(500); // 500ms = 0.5秒
testTimer.Tick += Timer_Tick;
}
//复位btn
@@ -66,14 +75,58 @@ namespace 头罩视野.Views
ma.BtnClickFunction(Function.ButtonType., 11);
}
//测试btn
//测试btn 测试按钮:读取数据,存入共享列表
private void Button_Click_Test(object sender, RoutedEventArgs e)
{
testTimer.Start();
ma.BtnClickFunction(Function.ButtonType., 101);
}
private async void Timer_Tick(object sender, EventArgs e)
{
System.Diagnostics.Debug.WriteLine("定时器触发了!" + DateTime.Now);
// 调用你原来的读取方
//await ReadAddr262DataAsync();
// 组装当前数据
var data = new TestDataStore.TestRecord
{
Date = DateTime.Now.ToString("yyyy-MM-dd"),
Time = DateTime.Now.ToString("HH:mm:ss"),
LeftEyeArea = double.TryParse(zmsyarea.Text, out var l) ? l : 0,
RightEyeArea = double.TryParse(ymsyarea.Text, out var r) ? r : 0,
BinocularArea = double.TryParse(smsyarea.Text, out var b) ? b : 0,
LowerVision = double.TryParse(kbsyarea.Text, out var lv) ? lv : 0,
VisionRetentionRate = double.TryParse(sybhl.Text, out var vr) ? vr : 0
};
// ==================== 去重判断 ====================
if (_lastRecord != null &&
data.LeftEyeArea == _lastRecord.LeftEyeArea &&
data.RightEyeArea == _lastRecord.RightEyeArea &&
data.BinocularArea == _lastRecord.BinocularArea &&
data.LowerVision == _lastRecord.LowerVision &&
data.VisionRetentionRate == _lastRecord.VisionRetentionRate)
{
return; // 一样就不添加
}
// 不一样 → 插入表格
TestDataStore.AddNewRecord(data);
_lastRecord = data;
}
private void Page_Unloaded(object sender, RoutedEventArgs e)
{
testTimer?.Stop();
}
//停止btn
private void Button_Click_Stop(object sender, RoutedEventArgs e)
{
testTimer.Stop();
MessageBox.Show("已停止");
ma.BtnClickFunction(Function.ButtonType., 103);
}
//打印
@@ -256,40 +309,9 @@ namespace 头罩视野.Views
private void GoTest(object s, RoutedEventArgs e) => NavigationService.Content = new Views.PageTest();
private void GoRecord(object s, RoutedEventArgs e) => NavigationService.Content = new Views.RecordDate();
private void GoView(object s, RoutedEventArgs e) => NavigationService.Content = new Views.RecordPage();
private void InitializeModbusTcp()
{
try
{
string plcIp = "192.168.1.10";
bool initSuccess = ModbusResourceManager.Instance.Init(plcIp, 502);
if (!initSuccess)
{
MessageBox.Show("连接Modbus服务器失败", "错误");
//this.Close();
return;
}
// 检查连接状态
if (_tcpClient == null || !_tcpClient.Connected)
{
MessageBox.Show("Modbus连接异常", "错误");
return;
}
ma = new Function(_modbusMaster);
}
catch (Exception ex)
{
ShowError($"Modbus初始化失败: {ex.Message}");
}
}
private void Page_Loaded(object sender, RoutedEventArgs e)
{
//InitializeModbusTcp();
_timer.Start();
}
}

View File

@@ -141,7 +141,7 @@
<Grid Grid.Row="1">
<TextBlock Text="左眼" FontSize="16" Margin="0,0,0,5"/>
</Grid>
<!--表格-->
<!--表格1-->
<Grid Grid.Row="2" Margin="0 0 0 10">
<DataGrid x:Name="dataGrid1"
Height="190"
@@ -153,7 +153,6 @@
HeadersVisibility="Column"
GridLinesVisibility="All"
Style="{StaticResource DataGridStyle}"
ItemsSource="{Binding ReportData}"
AlternationCount="2"
ColumnHeaderStyle="{StaticResource DataGridColumnHeaderStyle}"
RowStyle="{StaticResource DataGridRowStyle}"
@@ -179,7 +178,7 @@
<Grid Grid.Row="3">
<TextBlock Text="左眼" FontSize="16" Margin="0,0,0,5"/>
</Grid>
<!--表格-->
<!--表格2-->
<Grid Grid.Row="4" Margin="0 0 0 10">
<DataGrid x:Name="dataGrid2"
Height="190"
@@ -191,7 +190,7 @@ ScrollViewer.HorizontalScrollBarVisibility="Auto"
HeadersVisibility="Column"
GridLinesVisibility="All"
Style="{StaticResource DataGridStyle}"
ItemsSource="{Binding ReportData}"
AlternationCount="2"
ColumnHeaderStyle="{StaticResource DataGridColumnHeaderStyle}"
RowStyle="{StaticResource DataGridRowStyle}"

View File

@@ -6,7 +6,7 @@
xmlns:local="clr-namespace:头罩视野.Views"
mc:Ignorable="d"
d:DesignHeight="768" d:DesignWidth="1024"
Background="#F5F7FA"
Background="#F5F7FA" Loaded="Page_Loaded"
Title="RecordPage">
<Page.Resources>
@@ -157,6 +157,8 @@
<DataGridTextColumn Header="左目视野面积" Binding="{Binding LeftEyeArea,StringFormat=F2}" Width="*" IsReadOnly="True" />
<DataGridTextColumn Header="右目视野面积" Binding="{Binding RightEyeArea,StringFormat=F2}" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Header="双目视野面积" Binding="{Binding BinocularArea,StringFormat=F2}" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Header="下方视野" Binding="{Binding LowerVision,StringFormat=F2}" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Header="视野保存率" Binding="{Binding VisionRetentionRate,StringFormat=F2}" Width="*" IsReadOnly="True"/>
</DataGrid.Columns>
</DataGrid>
</Grid>

View File

@@ -1,4 +1,5 @@
using Modbus.Device;
using OfficeOpenXml;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
@@ -16,161 +17,77 @@ using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;
using OfficeOpenXml;
using .Services.Data;
using static .TestDataStore;
namespace .Views
{
public class RecordList
{
public int Id { get; set; } // 编号
public string Time { get; set; } = string.Empty; // 时间
public string Date { get; set; } = string.Empty; // 日期
public double LeftEyeArea { get; set; } // 左目视野面积
public double RightEyeArea { get; set; } // 右目视野面积
public double BinocularArea { get; set; } // 双目视野面积
}
/// <summary>
/// RecordPage.xaml 的交互逻辑
/// </summary>
public partial class RecordPage : Page
{
// 表格数据源ObservableCollection增删会自动更新UI
private ObservableCollection<RecordList> _recordList = new ObservableCollection<RecordList>();
// Modbus通信对象从你的全局单例获取
private TcpClient _tcpClient => ModbusResourceManager.Instance.TcpClient;
private IModbusMaster _modbusMaster => ModbusResourceManager.Instance.ModbusMaster;
public RecordPage()
{
InitializeComponent();
// 绑定表格数据源
RecordDataGrid.ItemsSource = _recordList;
}
//#region 1. 从设备读取数据并添加到表格
public async System.Threading.Tasks.Task AddRecordFromDeviceAsync()
{
if (_modbusMaster == null)
{
MessageBox.Show("设备未连接,无法读取数据!");
return;
}
try
{
// 1. 从设备读取数据(替换成你实际的寄存器地址)
ushort[] leftReg = await _modbusMaster.ReadHoldingRegistersAsync(1, 100, 2);
ushort[] rightReg = await _modbusMaster.ReadHoldingRegistersAsync(1, 102, 2);
ushort[] binocularReg = await _modbusMaster.ReadHoldingRegistersAsync(1, 104, 2);
// 2. 把寄存器数据转成float
float leftEye = ConvertRegistersToFloat(leftReg);
float rightEye = ConvertRegistersToFloat(rightReg);
float binocularEye = ConvertRegistersToFloat(binocularReg);
// 3. 新增一条记录
var now = DateTime.Now;
var newRecord = new RecordList
{
Id = _recordList.Count + 1,
Date = now.ToString("yyyy-MM-dd"),
Time = now.ToString("HH:mm:ss"),
LeftEyeArea = leftEye,
RightEyeArea = rightEye,
BinocularArea = binocularEye
};
// 4. 添加到表格UI自动更新
_recordList.Add(newRecord);
MessageBox.Show("数据读取成功,已添加到表格!");
}
catch (Exception ex)
{
MessageBox.Show($"读取设备数据失败:{ex.Message}");
}
}
// 工具方法Modbus寄存器转float
private float ConvertRegistersToFloat(ushort[] registers)
{
byte[] bytes = new byte[4];
bytes[0] = (byte)(registers[0] >> 8);
bytes[1] = (byte)(registers[0] & 0xFF);
bytes[2] = (byte)(registers[1] >> 8);
bytes[3] = (byte)(registers[1] & 0xFF);
return BitConverter.ToSingle(bytes, 0);
}
//#endregion
//#region 2. 清除表格数据
private void btnClear_Click(object sender, RoutedEventArgs e)
{
// 确认清除
if (MessageBox.Show("确定要清除所有记录吗?", "确认", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{
_recordList.Clear();
MessageBox.Show("数据已清除!");
TestDataStore.Records.Clear();
RecordDataGrid.ItemsSource = null;
RecordDataGrid.ItemsSource = TestDataStore.Records;
}
}
//#endregion
//#region 3. 保存为Excel
private void btnSave_Click(object sender, RoutedEventArgs e)
{
// 你表格的数据源 👇
var dataList = RecordDataGrid.ItemsSource as IEnumerable<RecordList>;
if (dataList == null || !dataList.Any())
try
{
MessageBox.Show("没有数据可保存!");
return;
}
Microsoft.Win32.SaveFileDialog save = new Microsoft.Win32.SaveFileDialog();
save.Filter = "Excel 文件|*.xlsx";
save.FileName = "测试记录_" + DateTime.Now.ToString("yyyyMMddHHmmss");
if (save.ShowDialog() != true) return;
using (ExcelPackage package = new ExcelPackage())
{
ExcelWorksheet sheet = package.Workbook.Worksheets.Add("测试记录");
// 表头
sheet.Cells["A1"].Value = "编号";
sheet.Cells["B1"].Value = "时间";
sheet.Cells["C1"].Value = "日期";
sheet.Cells["D1"].Value = "左目视野面积";
sheet.Cells["E1"].Value = "右目视野面积";
sheet.Cells["F1"].Value = "双目视野面积";
// 写入数据
int row = 2;
foreach (var item in dataList)
// 1. 构建表格内容
StringBuilder sb = new StringBuilder();
sb.AppendLine("编号,日期,时间,左目视野面积,右目视野面积,双目视野面积,空白视野面积,下方视野,视野保存率");
foreach (var item in TestDataStore.Records)
{
sheet.Cells[row, 1].Value = item.Id;
sheet.Cells[row, 2].Value = item.Time;
sheet.Cells[row, 3].Value = item.Date;
sheet.Cells[row, 4].Value = item.LeftEyeArea;
sheet.Cells[row, 5].Value = item.RightEyeArea;
sheet.Cells[row, 6].Value = item.BinocularArea;
row++;
sb.AppendLine($"{item.Id},{item.Date},{item.Time},{item.LeftEyeArea},{item.RightEyeArea},{item.BinocularArea},{item.LowerVision},{item.VisionRetentionRate}");
}
// 保存
File.WriteAllBytes(save.FileName, package.GetAsByteArray());
}
// 2. 弹出保存框,让用户自己选位置
Microsoft.Win32.SaveFileDialog saveFileDialog = new Microsoft.Win32.SaveFileDialog();
saveFileDialog.Filter = "CSV 文件 (*.csv)|*.csv|所有文件 (*.*)|*.*";
saveFileDialog.FileName = $"测试记录_{DateTime.Now:yyyyMMddHHmmss}";
MessageBox.Show("保存成功!");
if (saveFileDialog.ShowDialog() == true)
{
// 3. 保存文件
File.WriteAllText(saveFileDialog.FileName, sb.ToString(), Encoding.UTF8);
MessageBox.Show("保存成功!\n文件路径" + saveFileDialog.FileName, "成功");
}
}
catch (Exception ex)
{
MessageBox.Show("保存失败:" + ex.Message);
}
}
//#endregion
private void Page_Loaded(object sender, RoutedEventArgs e)
{
//InitializeModbusTcp();
RecordDataGrid.ItemsSource = null;
RecordDataGrid.ItemsSource = TestDataStore.Records;
}

View File

@@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Views\PageTest.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "A72C3C34E2723D5CEF9CE8AE60621F6C67083097"
#pragma checksum "..\..\..\..\Views\PageTest.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "CC165992FB311CDDE115E339868F704FC7865550"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
@@ -168,6 +168,12 @@ namespace 头罩视野.Views {
#line 11 "..\..\..\..\Views\PageTest.xaml"
((.Views.PageTest)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);
#line default
#line hidden
#line 11 "..\..\..\..\Views\PageTest.xaml"
((.Views.PageTest)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.Page_Unloaded);
#line default
#line hidden
return;

View File

@@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Views\PageTest.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "A72C3C34E2723D5CEF9CE8AE60621F6C67083097"
#pragma checksum "..\..\..\..\Views\PageTest.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "CC165992FB311CDDE115E339868F704FC7865550"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
@@ -168,6 +168,12 @@ namespace 头罩视野.Views {
#line 11 "..\..\..\..\Views\PageTest.xaml"
((.Views.PageTest)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);
#line default
#line hidden
#line 11 "..\..\..\..\Views\PageTest.xaml"
((.Views.PageTest)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.Page_Unloaded);
#line default
#line hidden
return;

View File

@@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Views\RecordDate.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5C2FEF97EBF3FEE1BE4B95FC3929BA7CFCE30E2A"
#pragma checksum "..\..\..\..\Views\RecordDate.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "26A6787944E77FB072929431D63045D09E531706"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
@@ -50,7 +50,7 @@ namespace 头罩视野.Views {
#line hidden
#line 184 "..\..\..\..\Views\RecordDate.xaml"
#line 183 "..\..\..\..\Views\RecordDate.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.DataGrid dataGrid2;
@@ -95,7 +95,7 @@ namespace 头罩视野.Views {
return;
case 3:
#line 246 "..\..\..\..\Views\RecordDate.xaml"
#line 245 "..\..\..\..\Views\RecordDate.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoHome);
#line default
@@ -103,7 +103,7 @@ namespace 头罩视野.Views {
return;
case 4:
#line 248 "..\..\..\..\Views\RecordDate.xaml"
#line 247 "..\..\..\..\Views\RecordDate.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoTest);
#line default
@@ -111,7 +111,7 @@ namespace 头罩视野.Views {
return;
case 5:
#line 250 "..\..\..\..\Views\RecordDate.xaml"
#line 249 "..\..\..\..\Views\RecordDate.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoRecord);
#line default
@@ -119,7 +119,7 @@ namespace 头罩视野.Views {
return;
case 6:
#line 252 "..\..\..\..\Views\RecordDate.xaml"
#line 251 "..\..\..\..\Views\RecordDate.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoView);
#line default

View File

@@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Views\RecordDate.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5C2FEF97EBF3FEE1BE4B95FC3929BA7CFCE30E2A"
#pragma checksum "..\..\..\..\Views\RecordDate.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "26A6787944E77FB072929431D63045D09E531706"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
@@ -50,7 +50,7 @@ namespace 头罩视野.Views {
#line hidden
#line 184 "..\..\..\..\Views\RecordDate.xaml"
#line 183 "..\..\..\..\Views\RecordDate.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.DataGrid dataGrid2;
@@ -95,7 +95,7 @@ namespace 头罩视野.Views {
return;
case 3:
#line 246 "..\..\..\..\Views\RecordDate.xaml"
#line 245 "..\..\..\..\Views\RecordDate.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoHome);
#line default
@@ -103,7 +103,7 @@ namespace 头罩视野.Views {
return;
case 4:
#line 248 "..\..\..\..\Views\RecordDate.xaml"
#line 247 "..\..\..\..\Views\RecordDate.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoTest);
#line default
@@ -111,7 +111,7 @@ namespace 头罩视野.Views {
return;
case 5:
#line 250 "..\..\..\..\Views\RecordDate.xaml"
#line 249 "..\..\..\..\Views\RecordDate.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoRecord);
#line default
@@ -119,7 +119,7 @@ namespace 头罩视野.Views {
return;
case 6:
#line 252 "..\..\..\..\Views\RecordDate.xaml"
#line 251 "..\..\..\..\Views\RecordDate.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoView);
#line default

View File

@@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Views\RecordPage.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7328AE22CB79E1BE5EF280828554C56F40301320"
#pragma checksum "..\..\..\..\Views\RecordPage.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7C25257D5B49F85310AA23991215A080D30141C5"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
@@ -80,28 +80,28 @@ namespace 头罩视野.Views {
switch (connectionId)
{
case 1:
this.RecordDataGrid = ((System.Windows.Controls.DataGrid)(target));
return;
case 2:
#line 167 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);
#line 9 "..\..\..\..\Views\RecordPage.xaml"
((.Views.RecordPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);
#line default
#line hidden
return;
case 2:
this.RecordDataGrid = ((System.Windows.Controls.DataGrid)(target));
return;
case 3:
#line 169 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);
#line default
#line hidden
return;
case 4:
#line 183 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoHome);
#line 171 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);
#line default
#line hidden
@@ -109,7 +109,7 @@ namespace 头罩视野.Views {
case 5:
#line 185 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoTest);
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoHome);
#line default
#line hidden
@@ -117,7 +117,7 @@ namespace 头罩视野.Views {
case 6:
#line 187 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoRecord);
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoTest);
#line default
#line hidden
@@ -125,6 +125,14 @@ namespace 头罩视野.Views {
case 7:
#line 189 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoRecord);
#line default
#line hidden
return;
case 8:
#line 191 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoView);
#line default

View File

@@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Views\RecordPage.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7328AE22CB79E1BE5EF280828554C56F40301320"
#pragma checksum "..\..\..\..\Views\RecordPage.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7C25257D5B49F85310AA23991215A080D30141C5"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
@@ -80,28 +80,28 @@ namespace 头罩视野.Views {
switch (connectionId)
{
case 1:
this.RecordDataGrid = ((System.Windows.Controls.DataGrid)(target));
return;
case 2:
#line 167 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);
#line 9 "..\..\..\..\Views\RecordPage.xaml"
((.Views.RecordPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);
#line default
#line hidden
return;
case 2:
this.RecordDataGrid = ((System.Windows.Controls.DataGrid)(target));
return;
case 3:
#line 169 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);
#line default
#line hidden
return;
case 4:
#line 183 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoHome);
#line 171 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);
#line default
#line hidden
@@ -109,7 +109,7 @@ namespace 头罩视野.Views {
case 5:
#line 185 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoTest);
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoHome);
#line default
#line hidden
@@ -117,7 +117,7 @@ namespace 头罩视野.Views {
case 6:
#line 187 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoRecord);
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoTest);
#line default
#line hidden
@@ -125,6 +125,14 @@ namespace 头罩视野.Views {
case 7:
#line 189 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoRecord);
#line default
#line hidden
return;
case 8:
#line 191 "..\..\..\..\Views\RecordPage.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoView);
#line default

View File

@@ -1 +1 @@
95ab844d98e1183519914a9ecfd40ae0c7bf0719793e096a60f8b392af984829
1b5037bba807e51f9f9806aa25e4e4a18475e10245cb9df956b023739f5bd1c8

View File

@@ -72,13 +72,10 @@ D:\work\新建文件夹\头罩视野slove\头罩视野\bin\Debug\net10.0-windows
D:\work\新建文件夹\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\Microsoft.Extensions.Primitives.dll
D:\work\新建文件夹\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\Microsoft.IO.RecyclableMemoryStream.dll
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\头罩视野.exe
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\头罩视野.deps.json
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\头罩视野.runtimeconfig.json
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\头罩视野.dll
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\头罩视野.pdb
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\HandyControl.dll
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\EPPlus.dll
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\EPPlus.Interfaces.dll
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\HandyControl.dll
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\Microsoft.Extensions.Configuration.dll
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\Microsoft.Extensions.Configuration.Abstractions.dll
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\Microsoft.Extensions.Configuration.FileExtensions.dll
@@ -142,5 +139,8 @@ D:\work\hoodFieldOfView\头罩视野slove\头罩视野\obj\Debug\net10.0-windows
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\obj\Debug\net10.0-windows\头罩视野.dll
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\obj\Debug\net10.0-windows\refint\头罩视野.dll
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\obj\Debug\net10.0-windows\头罩视野.pdb
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\头罩视野.deps.json
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\头罩视野.runtimeconfig.json
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\bin\Debug\net10.0-windows\头罩视野.pdb
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\obj\Debug\net10.0-windows\头罩视野.genruntimeconfig.cache
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\obj\Debug\net10.0-windows\ref\头罩视野.dll

View File

@@ -12,7 +12,7 @@ TRACE;DEBUG;NET;NET10_0;NETCOREAPP;WINDOWS;WINDOWS7_0;NET5_0_OR_GREATER;NET6_0_O
D:\work\hoodFieldOfView\头罩视野slove\头罩视野\App.xaml
91871649718
22-923258510
23-2095027487
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;