1 修复拼多多管理下检测状态错误问题 2 sku替换图片选择,更新功能
This commit is contained in:
1 parent
caf8ba3fe8
commit
51e1773793
19 files changed
+1740
-193
No files matched your search
@@ -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(() =>
|
||||
|
||||
Reference in new issue
Block a user