Example #1
0
        private void BtnNuevo_Click(object sender, EventArgs e)
        {
            FrmPopupClinica frmPopupClinica = new FrmPopupClinica();

            frmPopupClinica.accion = "Nuevo";
            frmPopupClinica.ShowDialog();
            if (frmPopupClinica.DialogResult.Equals(DialogResult.OK))
            {
                listar();
            }
        }
Example #2
0
        private void BtnEditar_Click(object sender, EventArgs e)
        {
            FrmPopupClinica frmPopupClinica = new FrmPopupClinica();

            frmPopupClinica.accion = "Editar";
            frmPopupClinica.id     = dtgClinica.CurrentRow.Cells[0].Value.ToString();
            frmPopupClinica.ShowDialog();
            if (frmPopupClinica.DialogResult.Equals(DialogResult.OK))
            {
                listar();
            }
        }