コード例 #1
0
        private void TxtOutrasDesp_Leave(object sender, EventArgs e)
        {
            MaskForm.TxtMask_Moeda_Leave(sender, e);
            double despesa = Double.Parse(txtOutrasDesp.Text, NumberStyles.Any);
            double frete   = Double.Parse(txtFrete.Text, NumberStyles.Any);
            double seguro  = Double.Parse(txtSeguro.Text, NumberStyles.Any);
            double total   = Double.Parse(txtValorTotal.Text, NumberStyles.Any);

            if (despesa > 0)
            {
                total += despesa + seguro + frete;
                txtTotalPagar.Text = total.ToString("C", CultureInfo.CurrentCulture);
            }
            else
            {
                total += frete + seguro;
                txtTotalPagar.Text = total.ToString("C", CultureInfo.CurrentCulture);
            }
        }
コード例 #2
0
 private void TxtValorTotal_Leave(object sender, EventArgs e)
 {
     MaskForm.TxtMask_Moeda_Leave(sender, e);
 }
コード例 #3
0
 private void TxtCusto_Leave(object sender, EventArgs e)
 {
     MaskForm.TxtMask_Moeda_Leave(sender, e);
 }
コード例 #4
0
 private void TxtLimiteCredito_Leave(object sender, EventArgs e)
 {
     MaskForm.TxtMask_Moeda_Leave(sender, e);
 }
コード例 #5
0
 private void txtPrecoVenda_Leave(object sender, EventArgs e)
 {
     MaskForm.TxtMask_Moeda_Leave(sender, e);
 }
コード例 #6
0
 private void txtValorItens_Leave(object sender, EventArgs e)
 {
     MaskForm.TxtMask_Moeda_Leave(sender, e);
 }