public ImageInfo[] GetImagesInfo(string[] paths) { ImageInfo[] info = new ImageInfo[paths.Length]; for (int i = 0; i < info.Length; i++) { info[i] = CreateImageInfo(paths[i]); } return info; }
public void ActualizeLoadedImages(ImageInfo[] images) { this.imagesInfoListView.Items.Clear(); ListViewItem listItem; foreach (var img in images) { listItem = new ListViewItem(img.Name); listItem.SubItems.Add(img.Size.ToString()); listItem.SubItems.Add(img.Extension); imagesInfoListView.Items.Add(listItem); } this.fullSizeBeforeLabel.Text = string.Format("Actual size: {0:N3}",images.Sum(i=>i.Size)/(1024*1024)); }