private void AddImageButton_Click(object sender, EventArgs e)
        {
            OpenFileDialog opf = new OpenFileDialog();

            opf.Filter = "Windows Bitmap (*.bmp)|*.bmp| Файлы JPEG (*.jpeg, *.jpg)|*.jpeg;*.jpg|Все файлы ()*.*|*.*";
            if (opf.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    Pictures.AddPicture(Id, opf.FileName, SqlConnection);
                    MessageBox.Show("Изображение дабвлено");
                }
                catch (Exception)
                {
                    MessageBox.Show("Произошла ошибка при добавлении");
                }
                images = Images(Id);
            }
        }
 private List <string> Images(int id)
 {
     return(Pictures.Images(images, SqlConnection, Id));
 }