示例#1
0
        public void Set(int index, string newFilePath)
        {
            var args = new ItemChangedEventArgs(index, FileNames[index], newFilePath);

            FileNames[index] = newFilePath;
            ItemChanged(null, args);
        }
示例#2
0
        private void HandleItemChanged(object sender, ItemChangedEventArgs e)
        {
            var changedImageIndex = Images.IndexOf(new ImageInfo(e.PreviousImagePath));

            Images[changedImageIndex].ImgPath = e.CurrentImagePath;
        }