Пример #1
0
        private void btnGuardar_Click(object sender, EventArgs e)
        {
            Consulta consulta = new Consulta();

            KMg1CBA = double.Parse(tbKMg1.Text);
            KMg1INT = double.Parse(tbKMg1INT.Text);
            KMg2CBA = double.Parse(tbKMg2.Text);
            KMg2INT = double.Parse(tbKMg2INT.Text);
            KMg3    = double.Parse(tbKMg3.Text);
            KMg4    = double.Parse(tbKMg4.Text);
            KMg11   = double.Parse(tbKMg11.Text);

            Horag1CBA = double.Parse(tbHorag1.Text);
            Horag1INT = double.Parse(tbHorag1INT.Text);
            Horag2CBA = double.Parse(tbHorag2.Text);
            Horag2INT = double.Parse(tbHorag2INT.Text);
            Horag3    = double.Parse(tbHorag3.Text);
            Horag4    = double.Parse(tbHorag4.Text);
            Horag11   = double.Parse(tbHorag11.Text);
            consulta.ActTarifas(KMg1CBA, KMg1INT, KMg2CBA, KMg2INT, KMg3, KMg4, KMg11, Horag1CBA, Horag1INT, Horag2CBA, Horag2INT, Horag3, Horag4, Horag11);
            MessageBox.Show("¡Tarifa actualizada con éxito");
        }