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 imageListView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            ImageDataService imageDataService = new ImageDataService();

            textBox1.Text = imageListView.Rows[e.RowIndex].Cells[2].Value.ToString();
            byte[] image = (byte[])imageListView.Rows[e.RowIndex].Cells[1].Value;
            pictureBox.Image = imageDataService.ImageConversion(image);
            Upd_ImageId.Text = imageListView.Rows[e.RowIndex].Cells[0].Value.ToString();
        }
        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");
            }
        }
        private void ImageActions_Load(object sender, EventArgs e)
        {
            ImageDataService imageDataService = new ImageDataService();

            imageListView.DataSource = imageDataService.GetImageList(this.usingEventId);
            if (imageListView.RowCount > 0)
            {
                byte[] image = (byte[])imageListView.Rows[0].Cells[1].Value;
                pictureBox.Image = imageDataService.ImageConversion(image);
                MessageBox.Show((imageListView.RowCount).ToString());
            }
            else
            {
                pictureBox.Image = null;
            }
        }