Example #1
0
        private void tsEditar_Click(object sender, EventArgs e)
        {
            frmPopupDoctor ofrmPopupDoctor = new frmPopupDoctor();

            ofrmPopupDoctor.iidDoctor = (int)dgvDoctor.CurrentRow.Cells[0].Value;
            ofrmPopupDoctor.ShowDialog();
            if (ofrmPopupDoctor.DialogResult.Equals(DialogResult.OK))
            {
                listarDoctor();
            }
        }
Example #2
0
        private void tsNuevo_Click(object sender, EventArgs e)
        {
            frmPopupDoctor ofrmPopupDoctor = new frmPopupDoctor();

            ofrmPopupDoctor.iidDoctor = 0;
            ofrmPopupDoctor.ShowDialog();
            if (ofrmPopupDoctor.DialogResult.Equals(DialogResult.OK))
            {
                listarDoctor();
            }
        }