public void show List Img Pictures textBox1 Text Pictures ImgUrl int d

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
public void show(List<Img> Pictures)
{
// textBox1.Text += Pictures[i].ImgUrl+" ";
int i = 0;
dispatcherTimer.Tick += new EventHandler(delegate(object sender, EventArgs e)
{
textBox1.Text += i + " ";
uriSource = new Uri(@"/WpfApplication1;component/images/" + Pictures[i].ImgUrl + ".jpg", UriKind.Relative);
image1.Source = new BitmapImage(uriSource);
if(i<Pictures.Count-1)
i++;
}
);
dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 1500);
dispatcherTimer.Start();
}