private void button3_Click(object sender, EventArgs e) { Image image = ImageGeter.GetFromServer(AppConfig.APIUrl); this.pictureBox1.Image = image; Images.Add(new FIFAImage(image)); }
private void button1_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { string filePath = openFileDialog1.FileName; Image image = ImageGeter.GetByFilePath(filePath); if (image != null) { pictureBox1.Image = image; Images.Add(new FIFAImage(image)); } else { MessageBox.Show("File dosen`t exist or not image"); } } }