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); } }
private void TxtValorTotal_Leave(object sender, EventArgs e) { MaskForm.TxtMask_Moeda_Leave(sender, e); }
private void TxtCusto_Leave(object sender, EventArgs e) { MaskForm.TxtMask_Moeda_Leave(sender, e); }
private void TxtLimiteCredito_Leave(object sender, EventArgs e) { MaskForm.TxtMask_Moeda_Leave(sender, e); }
private void txtPrecoVenda_Leave(object sender, EventArgs e) { MaskForm.TxtMask_Moeda_Leave(sender, e); }
private void txtValorItens_Leave(object sender, EventArgs e) { MaskForm.TxtMask_Moeda_Leave(sender, e); }