Example #1
0
        private void btnagregar_Click(object sender, EventArgs e)
        {
            EdicionDoctor frm = new EdicionDoctor();

            frm.ShowDialog();
            CargarDoctores();
        }
Example #2
0
        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();
        }