修复加载测温区时索引还原失败的问题
This commit is contained in:
@@ -3061,15 +3061,16 @@ namespace JoyD.Windows.CS
|
||||
}
|
||||
|
||||
// 创建新的测温区并添加到列表
|
||||
// 从CSV文件第一列获取原始索引值
|
||||
int.TryParse(parts[0], out int regionIndex);
|
||||
RegionInfo region = new RegionInfo
|
||||
{
|
||||
Index = index,
|
||||
Index = regionIndex,
|
||||
ImageRectangle = new Rectangle(x, y, width, height),
|
||||
Color = color
|
||||
};
|
||||
|
||||
|
||||
_drawnRectangles.Add(region);
|
||||
index++;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user