private void tsbtnModelPreview_Click(object sender, EventArgs e)
        {
            CurrencyManager cm = (CurrencyManager)this.BindingContext[dgvModels.DataSource, dgvModels.DataMember];

            Model model = (Model)cm.Current;

            ModelPreviewFrom frm = new ModelPreviewFrom();

            frm.ModelPreviewImage = Utils.ByteArrayToBitmap(model.Image);

            frm.ShowDialog(this);
            frm.Dispose();
        }
        private void tsbtnModelPreview_Click(object sender, EventArgs e)
        {
            CurrencyManager cm = (CurrencyManager)this.BindingContext[dgvModels.DataSource, dgvModels.DataMember];

            Model model = (Model)cm.Current;

            ModelPreviewFrom frm = new ModelPreviewFrom();

            frm.ModelPreviewImage = Utils.ByteArrayToBitmap(model.Image);

            frm.ShowDialog(this);
            frm.Dispose();
        }