1 修复拼多多管理下检测状态错误问题 2 sku替换图片选择,更新功能

This commit is contained in:
wule committed 2025-10-13 18:54:31 +08:00
1 parent caf8ba3fe8
commit 51e1773793
19 files changed
+1740 -193

No files matched your search

+13 -1
View File
@@ -552,8 +552,20 @@ namespace TemuKJD.Extension
{
ShowDgvImg(dgv, new ConcurrentList<DataGridViewRow> { dgv.Rows[e.RowIndex] }, imgColumn, imgPathColumn, isSetHttpsHttp);
};
dgv.CellValueChanged += (s, e) =>
{
if (dgv.Columns[e.ColumnIndex].Name == imgPathColumn)
{
var row = dgv.Rows[e.RowIndex];
if (row.Cells[imgColumn].Value != null && row.Cells[imgColumn].Value != defaultBitmap)
{
row.Cells[imgColumn].Value = defaultBitmap;
ShowDgvImg(dgv, new ConcurrentList<DataGridViewRow> { row }, imgColumn, imgPathColumn, isSetHttpsHttp);
}
}
};
}
static Bitmap defaultBitmap = new Bitmap(1,1);
public static Bitmap defaultBitmap = new Bitmap(1,1);
static void ShowDgvImg(DataGridView dgv, ConcurrentList<DataGridViewRow> rowLst, string imgColumn, string imgPathColumn, bool isSetHttpsHttp = true)
{
Task.Run(() =>