Files
hoodFieldOfView/头罩视野slove/头罩视野/TestDataStore.cs

36 lines
1012 B
C#
Raw Normal View History

2026-04-21 10:19:14 +08:00
using System;
using System.Collections.Generic;
using System.Text;
namespace
{
public static class TestDataStore
{
// 单条测试数据
public class TestRecord
{
public int Id { get; set; }
2026-04-22 14:45:50 +08:00
public string Time { get; set; } = string.Empty;
public string Date { get; set; } = string.Empty;
2026-04-21 10:19:14 +08:00
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);
}
}
}