Ejemplo n.º 1
0
 private void grid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     getValues();
     form.grpOptional.Enabled = false;
     form.grpPersonal.Enabled = false;
     form.ShowDialog();
 }
Ejemplo n.º 2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (grid.CurrentRow != null)
     {
         getValues();
         form.ShowDialog();
     }
     else
     {
         MetroMessageBox.Show(this.Parent.Parent, "No results found.", "EMPTY GRID", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Ejemplo n.º 3
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     formpatient = new FormAddPatient(this);
     formpatient.ShowDialog();
 }