Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (DGVShowPatient.RowCount > 0)
     {
         PatientShowViewModel medhis = getViewModelfromDataRow();
         medhis.Id = DGVShowPatient.CurrentRow.Cells[0].Value.ToString();
         Frm_MedicHistory FrmMedicHistory = new Frm_MedicHistory();
         FrmMedicHistory.patmed.Id = medhis.Id;
         FrmMedicHistory.docuv.Id  = docvm.Id;
         FrmMedicHistory.frmfather = this;
         FrmMedicHistory.ShowDialog();
     }
 }