public void Set(int index, string newFilePath) { var args = new ItemChangedEventArgs(index, FileNames[index], newFilePath); FileNames[index] = newFilePath; ItemChanged(null, args); }
private void HandleItemChanged(object sender, ItemChangedEventArgs e) { var changedImageIndex = Images.IndexOf(new ImageInfo(e.PreviousImagePath)); Images[changedImageIndex].ImgPath = e.CurrentImagePath; }