Exemple #1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            frmMedicalExamEdicion frm = new frmMedicalExamEdicion("", "New");

            frm.ShowDialog();

            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                // Refrescar grilla
                btnFilter_Click(sender, e);
            }
        }
Exemple #2
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            string strMedicalExamId = grdDataMedicalExam.Selected.Rows[0].Cells[0].Value.ToString();

            frmMedicalExamEdicion frm = new frmMedicalExamEdicion(strMedicalExamId, "Edit");

            frm.ShowDialog();

            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                // Refrescar grilla
                btnFilter_Click(sender, e);
            }
        }
        private void mnuGridEditMedicalExam_Click(object sender, EventArgs e)
        {
            string strMedicalExamId   = grdDataMedicalExam.Selected.Rows[0].Cells[0].Value.ToString();
            string orden              = grdDataMedicalExam.Selected.Rows[0].Cells["i_UIIndex"].Value.ToString();
            frmMedicalExamEdicion frm = new frmMedicalExamEdicion(strMedicalExamId, "Edit", orden);

            frm.ShowDialog();

            //if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            //{
            // Refrescar grilla
            btnFilter_Click(sender, e);
            //}
        }