private void ImageItemsUpdateUI(List <string> files) { if (IMG_LSTVIEW_UI.ILV_GetImgItems().Count != 0) { IMG_LSTVIEW_UI.ILV_Clearitem(); } List <ImageItem> list = new List <ImageItem>(); foreach (string file in files) { list.Add(new ImageItem() { p_Image_uri = file, p_FileName = Path.GetFileName(file) }); } foreach (ImageItem file in list) { IMG_LSTVIEW_UI.ILV_insertitem(file); } }
private void inner_ImageItemsUpdateUI(List <ImageItem> items) { try { if (IMG_LSTVIEW_UI.ILV_GetImgItems().Count != 0) { IMG_LSTVIEW_UI.ILV_Clearitem(); } foreach (ImageItem item in items) { IMG_LSTVIEW_UI.ILV_insertitem(item); } return; } catch (Exception err) { return; } finally { } }