private void ProcessRedcode(string redcode) { RadioInfo r = RadioInfo.ParseRedcode(redcode); bool hiRes = (File.Exists(r.getGifName(true))); pictureBox1.Image = Image.FromFile(r.getGifName(hiRes)); pictureBox1.BringToFront(); ProcessImage(pictureBox1); }
private void button1_Click(object sender, EventArgs e) { if (pictureBox1.Image != null) { pictureBox1.Image.Dispose(); } pictureBox1.Image = null; Downloader d = new Downloader(); var r = RadioInfo.ParseRedcode(textBox1.Text); r.SaveToTmp = true; FraccionInfo fraccion = new FraccionInfo(r.Prov, r.Dpto, r.Fraccion); if (d.getFraccionInfo(fraccion)) { d.getMapaRadio(r, fraccion.Extents); pictureBox1.Image = Bitmap.FromFile(r.getGifName()); } }