コード例 #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();
            }
        }