Ejemplo n.º 1
0
    protected void btn_ModTauxCamion_Click(object sender, EventArgs e)
    {
        //Modifier le taux camion
        if (btn_ModTauxCamion.Text == "Modifier")
        {
            tbx_TauxCamion.Enabled = true;
            btn_ModTauxCamion.Text = "Enregistrer";
        }
        else
        {
            tbx_TauxCamion.Enabled = false;
            btn_ModTauxCamion.Text = "Modifier";
            //Enregistrer le tout
            string text = tbx_TauxCamion.Text;
            text = text.Trim(' ', '$');

            BD_CoEco.AddTauxKilo(float.Parse(text), 2);
        }
    }