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

            frm.IdDoctor = 0;
            frm.ShowDialog();
            if (frm.DialogResult.Equals(DialogResult.OK))
            {
                ListarDoctores();
            }
        }
Example #2
0
        private void toolStripEditar_Click(object sender, EventArgs e)
        {
            FRMPopupDoctor frm   = new FRMPopupDoctor();
            int            idDoc = (int)dgvDoctor.CurrentRow.Cells[0].Value;

            frm.IdDoctor = idDoc;
            frm.ShowDialog();
            if (frm.DialogResult.Equals(DialogResult.OK))
            {
                ListarDoctores();
            }
        }