Exemplo n.º 1
0
        private void btnGuardar_Click(object sender, EventArgs e)
        {
            try
            {
                Cursor.Current = Cursors.WaitCursor;

                Odatos.actTJ("TablaJ", Pjornada.Text, lblTorneo.Text);

                Opartido.AsociarText(Pjornada.Text, ame, atl, caz, gua, leo, jua, mon, mty, nec, pac, pue, pum, qro, san, sal, tig, tij, tol, vrz, txbL1, txbL2, txbL3, txbL4, txbL5, txbL6, txbL7, txbL8, txbL9, txbV1, txbV2, txbV3, txbV4, txbV5, txbV6, txbV7, txbV8, txbV9, Came, Cpac, Catl, Cpue, Ccaz, Cpum, Cgua, Cqro, Cleo, Csan, Cjua, Csal, Cmon, Ctig, Cmty, Ctij, Cnec, Ctol, Cvrz);
                Opartido.ActGF(Pjornada, ame, atl, caz, gua, leo, jua, mon, mty, nec, pac, pue, pum, qro, san, sal, tig, tij, tol, vrz, Came, Cpac, Catl, Cpue, Ccaz, Cpum, Cgua, Cqro, Cleo, Csan, Cjua, Csal, Cmon, Ctig, Cmty, Ctij, Cnec, Ctol, Cvrz);
                Opartido.AsociarText(Pjornada.Text, ame, atl, caz, gua, leo, jua, mon, mty, nec, pac, pue, pum, qro, san, sal, tig, tij, tol, vrz, txbL1, txbL2, txbL3, txbL4, txbL5, txbL6, txbL7, txbL8, txbL9, txbV1, txbV2, txbV3, txbV4, txbV5, txbV6, txbV7, txbV8, txbV9, Came, Cpac, Catl, Cpue, Ccaz, Cpum, Cgua, Cqro, Cleo, Csan, Cjua, Csal, Cmon, Ctig, Cmty, Ctij, Cnec, Ctol, Cvrz);
                Limpiar();

                Otabla.Suma(TG, TE, TO, TGF, TGC);
                Otabla.SumDG(TDG);
                Otabla.SumPTS(TPTS);
                Otabla.SumPartidos(TP);

                Cursor.Current = Cursors.Default;

                btnSimular.Enabled = false; btnLimpiar.Enabled = false;
            }
            catch
            {
                MessageBox.Show("Hay campos vacios!");
            }
        }