private void BTNsearch_Click(object sender, EventArgs e) { string[] filePaths = Directory.GetFiles(appPath, "*.jpg"); foreach (string filePath in filePaths) File.Delete(filePath); FRMimagesearch searchimage = new FRMimagesearch(); searchimage.Artist = TXTartist.Text; searchimage.Album = TXTalbum.Text; if (searchimage.ShowDialog(this) == DialogResult.OK) { pictureBox.Image = (Bitmap)searchimage.Getimage(); } }
private void BTNsearch_Click(object sender, EventArgs e) { string[] filePaths = Directory.GetFiles(appPath, "*.jpg"); foreach (string filePath in filePaths) { File.Delete(filePath); } FRMimagesearch searchimage = new FRMimagesearch(); searchimage.Artist = TXTartist.Text; searchimage.Album = TXTalbum.Text; if (searchimage.ShowDialog(this) == DialogResult.OK) { pictureBox.Image = (Bitmap)searchimage.Getimage(); } }