更新2026
This commit is contained in:
@@ -29,14 +29,7 @@ namespace TabletTester2025
|
||||
|
||||
private void ApplyFilter()
|
||||
{
|
||||
int? station = null;
|
||||
if (StationFilter.SelectedIndex == 1) station = 1;
|
||||
else if (StationFilter.SelectedIndex == 2) station = 2;
|
||||
else if (StationFilter.SelectedIndex == 3) station = 3;
|
||||
|
||||
var filtered = _allData.AsEnumerable();
|
||||
if (station.HasValue)
|
||||
filtered = filtered.Where(b => b.StationId == station.Value);
|
||||
|
||||
// 为每个标签页绑定对应测试类型的数据
|
||||
HardnessGrid.ItemsSource = filtered.Where(b => b.TestType == "硬度").OrderByDescending(b => b.TestTime).ToList();
|
||||
@@ -113,4 +106,4 @@ namespace TabletTester2025
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user