private void button1_Click(object sender, EventArgs e) { string caturl; GetCat cat = new GetCat(); caturl = cat.GetCatPic(); OpenFileDialog dlg = new OpenFileDialog(); pictureBox1.ImageLocation = caturl; label1.Text = cat.CreateLabel(caturl); }
public Form1() { InitializeComponent(); string caturl; GetCat cat = new GetCat(); caturl = cat.GetCatPic(); OpenFileDialog dlg = new OpenFileDialog(); pictureBox1.ImageLocation = caturl; label1.Text = cat.CreateLabel(caturl); }