private void button1_Click(object sender, EventArgs e) { ImageDataService imageDataService = new ImageDataService(); Images images = imageDataService.GetTheImage(1); pictureBox.Image = imageDataService.ImageConversion(images.Pictures); }
private void button2_Click(object sender, EventArgs e) { ImageDataService imageDataService = new ImageDataService(); Images image = imageDataService.GetTheImage(Convert.ToInt32(Upd_ImageId.Text)); if (image != null) { pictureBox.Image = imageDataService.ImageConversion(image.Pictures); Upd_StoryBox.Text = image.Story; Upd_DateBox.Text = image.ModificationDate; } else { MessageBox.Show("Invalid Image Id"); } }