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

            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                frmSolicitudes_Load(sender, e);
            }
        }
Example #2
0
        private void cmdEditar_Click(object sender, EventArgs e)
        {
            if (dgRegistros.SelectedRows.Count == 1)
            {
                var fila = (dsSysLab.SOLICITUDRow)((DataRowView)dgRegistros.CurrentRow.DataBoundItem).Row;

                var frm = new frmAgregarSolicitud(fila.ID_SOLICITUD);

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