private void btnagregar_Click(object sender, EventArgs e) { EdicionDoctor frm = new EdicionDoctor(); frm.ShowDialog(); CargarDoctores(); }
private void btnEditar_Click(object sender, EventArgs e) { EdicionDoctor frm = new EdicionDoctor(true); frm._IDDoctor = dtgdoctor.CurrentRow.Cells["IDDoctor"].Value.ToString(); frm._IDEmpleado = dtgdoctor.CurrentRow.Cells["IDEmpleado"].Value.ToString(); frm._IDEspecialiad = dtgdoctor.CurrentRow.Cells["IDEspecialidad"].Value.ToString(); frm._Turno = dtgdoctor.CurrentRow.Cells["Turno"].Value.ToString(); frm.ShowDialog(); CargarDoctores(); }