예제 #1
0
파일: FRMImage.cs 프로젝트: nowen3/Ntag
        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();

            }
        }
예제 #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();
            }
        }