Example #1
0
        private void cmdAgregar_Click(object sender, EventArgs e)
        {
            var frm = new frmAgregarAnalisis();

            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                frmCatalogo_Load(sender, e);
            }
        }
Example #2
0
        private void cmdEditar_Click(object sender, EventArgs e)
        {
            if (dgRegistros.SelectedRows.Count != 1)
            {
                MessageBox.Show("Por favor, seleccione un registro.", "SysLab", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                var fila = (dsSysLab.ANALISISRow)((DataRowView)dgRegistros.CurrentRow.DataBoundItem).Row;

                var frm = new frmAgregarAnalisis(fila.ID_ANALISIS);

                if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    frmCatalogo_Load(sender, e);
                }
            }
        }