private void button1_Click(object sender, EventArgs e)
        {
            int          id   = (int)dataGridView1.SelectedRows[0].Cells[0].Value;
            ShowCardForm form = new ShowCardForm(id);

            form.Show();
        }
        private void dataGridView1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            var          collection1 = dataGridView1.SelectedRows[0];
            var          collection2 = collection1.Cells;
            var          collection3 = (int)collection2[0].Value;
            ShowCardForm form        = new ShowCardForm(collection3);

            form.Show();
        }