Beispiel #1
0
        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();

            }
        }
Beispiel #2
0
        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();
            }
        }