private void dataGridView1_DoubleClick(object sender, EventArgs e)
        {
            var            dr  = dgvPatients.SelectedRows[0].Tag as EditPatientViewModel;
            frmEditPatient frm = new frmEditPatient(dr);

            frm.Show();
        }
 private void btnSelect_Click(object sender, EventArgs e)
 {
     if (dgvPatients.SelectedRows.Count > 0)
     {
         var            dr  = dgvPatients.SelectedRows[0].Tag as EditPatientViewModel;
         frmEditPatient frm = new frmEditPatient(dr);
         frm.Show();
     }
 }